ScriptComponentDescriptor.AddProperty(String, Object) 方法
定义
添加指定的属性和值。Adds the specified property and value.
public:
void AddProperty(System::String ^ name, System::Object ^ value);
public void AddProperty (string name, object value);
member this.AddProperty : string * obj -> unit
Public Sub AddProperty (name As String, value As Object)
参数
- name
- String
属性的名称。The name of the property.
- value
- Object
该属性的值。The value of the property.
例外
name 为 null 或空字符串 ("")。name is null or an empty string ("").
注解
此方法将属性和值添加到由方法转换为客户端脚本的属性的内部字典 GetScript 。This method adds the property and value to the internal dictionary of properties that are converted to client script by the GetScript method.