ScriptComponentDescriptor.AddScriptProperty(String, String) メソッド
定義
指定されたプロパティを追加し、そのプロパティと、指定されたスクリプトを関連付けます。Adds the specified property, and associates the property with the specified script.
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
プロパティの名前。The name of the property.
- script
- String
ブラウザーにレンダリングされるスクリプト。The script that is rendered to the browser.
例外
script
は null
または空の文字列 ("") です。script
is null
or an empty string ("").
注釈
ブラウザーにAddScriptPropertyシリアル化されていないスクリプトを表示するには、メソッドを使用します。Use the AddScriptProperty method to render script that is not serialized to the browser.