ScriptManager.GetRegisteredExpandoAttributes 方法

定义

检索先前已向 Page 对象注册的自定义 (expando) 特性的只读集合。Retrieves a read-only collection of custom (expando) attributes that were previously registered with the Page object.

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>

一个包含自定义特性的泛型集合。A generic collection that contains custom attributes.

示例

RegisterExpandoAttribute

RegisterExpandoAttribute

RegisteredExpandoAttribute

注解

自定义属性是可以由客户端脚本读取和设置的名称/值对。A custom attribute is a name/value pair that can be read and set by client script.

适用于