ScriptComponentDescriptor.AddComponentProperty(String, String) 方法

定义

添加指定的属性,并将该属性与指定的元素相关联。

public:
 void AddComponentProperty(System::String ^ name, System::String ^ componentID);
public void AddComponentProperty(string name, string componentID);
member this.AddComponentProperty : string * string -> unit
Public Sub AddComponentProperty (name As String, componentID As String)

参数

name
String

属性的名称。

componentID
String

目标组件的 ID。

例外

namecomponentIDnull 空字符串(“)。

注解

此方法将指定的属性添加到控件使用的属性的内部字典中,并由该方法转换为客户端脚本 GetScript

适用于