ScriptComponentDescriptor.AddComponentProperty(String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
新增指定的屬性,並將該屬性與指定的元素關聯起來。
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。
例外狀況
name 或 componentID 是 null 空字串(“”)。
備註
此方法將指定的屬性加入控制項使用的內部屬性字典,並由方法轉換為用戶端腳本 GetScript 。