ScriptComponentDescriptor.AddElementProperty(String, String) 方法

定义

添加指定的属性并将该属性与指定的组件相关联。

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

参数

name
String

属性的名称。

elementID
String

目标元素的 ID。

例外

namecomponentnull 空字符串(“)。

注解

此方法将指定的属性添加到方法 GetScript 转换为客户端脚本的属性的内部字典。

适用于