ScriptBehaviorDescriptor 類別

定義

擴充 ScriptComponentDescriptor 類別,以提供可定義要轉換成用戶端指令碼之行為的包裝函式。

public ref class ScriptBehaviorDescriptor : System::Web::UI::ScriptComponentDescriptor
public class ScriptBehaviorDescriptor : System.Web.UI.ScriptComponentDescriptor
type ScriptBehaviorDescriptor = class
    inherit ScriptComponentDescriptor
Public Class ScriptBehaviorDescriptor
Inherits ScriptComponentDescriptor
繼承

建構函式

ScriptBehaviorDescriptor(String, String)

初始化 ScriptBehaviorDescriptor 類別的新執行個體。

屬性

ClientID

取得目前 ScriptBehaviorDescriptor 執行實體的識別項。

ElementID

如建構函式中所設定,取得關聯項目的 id 屬性。

ID

取得或設定目前 ScriptComponentDescriptor 執行個體的 ID。

(繼承來源 ScriptComponentDescriptor)
Name

取得或設定目前 ScriptBehaviorDescriptor 執行個體的名稱。

Type

取得或設定目標用戶端元件的型別。

(繼承來源 ScriptComponentDescriptor)

方法

AddComponentProperty(String, String)

加入指定的屬性,並讓該屬性與指定的項目產生關聯。

(繼承來源 ScriptComponentDescriptor)
AddElementProperty(String, String)

加入指定的屬性,並讓該屬性與指定的元件產生關聯。

(繼承來源 ScriptComponentDescriptor)
AddEvent(String, String)

加入指定的事件與處理常式。

(繼承來源 ScriptComponentDescriptor)
AddProperty(String, Object)

加入指定的屬性和值。

(繼承來源 ScriptComponentDescriptor)
AddScriptProperty(String, String)

加入指定的屬性,並讓該屬性與指定的指令碼產生關聯。

(繼承來源 ScriptComponentDescriptor)
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetScript()

取得可在頁面上實作目標控制項的用戶端指令碼。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於