ScriptManager.GetRegisteredExpandoAttributes 方法

定義

擷取自訂 (expando) 屬性的唯讀集合,該屬性先前是向 Page 物件註冊。

public:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Web::UI::RegisteredExpandoAttribute ^> ^ GetRegisteredExpandoAttributes();
public System.Collections.ObjectModel.ReadOnlyCollection<System.Web.UI.RegisteredExpandoAttribute> GetRegisteredExpandoAttributes ();
member this.GetRegisteredExpandoAttributes : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.Web.UI.RegisteredExpandoAttribute>
Public Function GetRegisteredExpandoAttributes () As ReadOnlyCollection(Of RegisteredExpandoAttribute)

傳回

ReadOnlyCollection<RegisteredExpandoAttribute>

包含自訂屬性的泛型集合。

範例

RegisterExpandoAttribute

RegisterExpandoAttribute

RegisteredExpandoAttribute

備註

自訂屬性是可由用戶端腳本讀取和設定的名稱/值組。

適用於