ScriptComponentDescriptor.AddScriptProperty(String, String) 方法

定义

添加指定的属性,并将该属性与指定的脚本相关联。

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

参数

name
String

属性的名称。

script
String

呈现到浏览器的脚本。

例外

scriptnull 或空字符串(“)。

注解

AddScriptProperty使用此方法呈现未序列化到浏览器的脚本。

适用于