ViewStateModeByIdAttribute クラス
定義
public ref class ViewStateModeByIdAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class ViewStateModeByIdAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type ViewStateModeByIdAttribute = class
inherit Attribute
Public NotInheritable Class ViewStateModeByIdAttribute
Inherits Attribute
- 継承
- 属性
注釈
クラスは、 ViewStateModeByIdAttribute によるビューステートの読み込みを必要とするコントロールを指定するために使用され ID ます。The ViewStateModeByIdAttribute class is used to specify a control that requires view-state loading by ID. 既定のビューステート読み込み動作では、ASP.NET は、ページのコントロールツリー内のインデックスによってコントロールのビューステート情報を読み込みます。The default view-state loading behavior is for ASP.NET to load the view-state information for a control by its index in the control tree of the page. ビューステートの情報を ID 読み込む前にコントロールを検索する必要があるため、ビューステート情報を読み込むためのパフォーマンスコストが発生します。There is a performance cost for loading view-state information by ID because the page control tree must be searched for the control specifically before loading its view-state information.
ViewStateModeByIdAttributeクラスがカスタムコントロールクラスのメタデータ属性として使用されている場合、If the ViewStateModeByIdAttribute class is used as a metadata attribute of a custom control class,
LoadViewStateByIDコントロールのプロパティがを返し true
ます。the LoadViewStateByID property of the control returns true
. クラスが使用されていない場合 ViewStateModeByIdAttribute 、 LoadViewStateByID コントロールのプロパティはの既定値を返し false
ます。これは、コントロールがによってビューステート情報を読み込まないことを意味し ID ます。If the ViewStateModeByIdAttribute class is not used, the LoadViewStateByID property of the control returns its default value of false
, which means that the control does not load its view-state information by ID.
属性の使用方法の詳細については、「 属性」を参照してください。For more information about using attributes, see Attributes.
クラスは、 ViewStateModeByIdAttribute コントロールのビューステート情報の保存には適用されません。The ViewStateModeByIdAttribute class does not apply to saving the view-state information for a control.
ViewStateModeByIdAttributeクラスのメタデータ属性は、クラス宣言でのみ有効です。The ViewStateModeByIdAttribute class metadata attribute is valid only on class declarations.
コンストラクター
ViewStateModeByIdAttribute() |
ViewStateModeByIdAttribute クラスの新しいインスタンスを初期化します。Initializes a new instance of the ViewStateModeByIdAttribute class. |
プロパティ
TypeId |
派生クラスで実装されると、この Attribute の一意の識別子を取得します。When implemented in a derived class, gets a unique identifier for this Attribute. (継承元 Attribute) |
メソッド
Equals(Object) |
このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。Returns a value that indicates whether this instance is equal to a specified object. (継承元 Attribute) |
GetHashCode() |
このインスタンスのハッシュ コードを返します。Returns the hash code for this instance. (継承元 Attribute) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
IsDefaultAttribute() |
派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (継承元 Attribute) |
Match(Object) |
派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (継承元 Attribute) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. (継承元 Object) |
明示的なインターフェイスの実装
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
一連の名前を対応する一連のディスパッチ識別子に割り当てます。Maps a set of names to a corresponding set of dispatch identifiers. (継承元 Attribute) |
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) |
オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。Retrieves the type information for an object, which can be used to get the type information for an interface. (継承元 Attribute) |
_Attribute.GetTypeInfoCount(UInt32) |
オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。Retrieves the number of type information interfaces that an object provides (either 0 or 1). (継承元 Attribute) |
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。Provides access to properties and methods exposed by an object. (継承元 Attribute) |