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 方法轉換為用戶端腳本。

適用於