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 。