FilterableAttribute クラス
アセンブリ: System.Web (system.web.dll 内)
構文<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property)> _ Public NotInheritable Class FilterableAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property)] public sealed class FilterableAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property)] public ref class FilterableAttribute sealed : public Attribute
解説FilterableAttribute 属性をプロパティに適用し、プロパティでデバイスのフィルタ処理をサポートするかどうかを指定します。プロパティでデバイスのフィルタ処理がサポートされている場合は、デバイス フィルタを指定することで、特定のデバイスのプロパティの値をオーバーライドできます。既定ではプロパティはフィルタ処理できるように設定されています。コントロールの開発者は、FilterableAttribute 属性を false に設定することで、プロパティでデバイスのフィルタ処理を回避できます。詳細については、「特定のデバイス用のカスタマイズ」を参照してください。
属性の使用方法については、「属性を使用したメタデータの拡張」を参照してください。
FilterableAttribute クラスのインスタンスの初期プロパティ値の一覧については、FilterableAttribute コンストラクタのトピックを参照してください。
使用例FilterableAttribute 属性をカスタム コントロールのプロパティに適用して、プロパティでデバイスのフィルタ処理がサポートされていないことを示す方法を次のコード例に示します。
Imports System.ComponentModel Imports System.Web.UI Namespace Samples.AspNet.VB.Controls Public Class SimpleCustomControl Inherits System.Web.UI.WebControls.WebControl Dim _productID As String ' Set Filterable attribute to specify that this ' property does not support device filtering. <Bindable(True), Filterable(False)> Property ProductID() As String Get Return _productID End Get Set(ByVal Value As String) _productID = Value End Set End Property End Class End Namespace
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web.UI; using System.Web.UI.WebControls; namespace Samples.AspNet.CS.Controls { public class SimpleCustomControl : WebControl { private string _productID; // Set Filterable attribute to specify that this // property does not support device filtering. [Bindable(true)] [Filterable(false)] public string ProductID { get { return _productID; } set { _productID = value; } } } }
.NET Framework のセキュリティ
継承階層System.Attribute
System.Web.UI.FilterableAttribute
スレッド セーフ
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照FilterableAttribute コンストラクタ
アセンブリ: System.Web (system.web.dll 内)
構文
解説このコンストラクタを使用して、FilterableAttribute クラスの新しいインスタンスを作成します。FilterableAttribute クラスのインスタンスの初期プロパティ値を次の表に示します。
使用例FilterableAttribute 属性をカスタム コントロールのプロパティに適用する方法を次のコード例に示します。このコンストラクタは ASP.NET によって内部的に呼び出され、この属性を表す FilterableAttribute オブジェクトを作成します。
Imports System.ComponentModel Imports System.Web.UI Namespace Samples.AspNet.VB.Controls Public Class SimpleCustomControl Inherits System.Web.UI.WebControls.WebControl Dim _productID As String ' Set Filterable attribute to specify that this ' property does not support device filtering. <Bindable(True), Filterable(False)> Property ProductID() As String Get Return _productID End Get Set(ByVal Value As String) _productID = Value End Set End Property End Class End Namespace
using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Web.UI; using System.Web.UI.WebControls; namespace Samples.AspNet.CS.Controls { public class SimpleCustomControl : WebControl { private string _productID; // Set Filterable attribute to specify that this // property does not support device filtering. [Bindable(true)] [Filterable(false)] public string ProductID { get { return _productID; } set { _productID = value; } } } }
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照FilterableAttribute フィールド
パブリック フィールド| 名前 | 説明 | |
|---|---|---|
| Default | 既定のプロパティ設定を持つ定義済みの FilterableAttribute オブジェクトを表します。このフィールドは読み取り専用です。 |
| No | プロパティでデバイスのフィルタ処理がサポートされていないことを示す定義済みの FilterableAttribute オブジェクトを表します。このフィールドは読み取り専用です。 |
| Yes | プロパティでデバイスのフィルタ処理がサポートされていることを示す定義済みの FilterableAttribute オブジェクトを表します。このフィールドは読み取り専用です。 |
参照FilterableAttribute プロパティ
パブリック プロパティ| 名前 | 説明 | |
|---|---|---|
| Filterable | FilterableAttribute 属性を適用するプロパティでデバイスのフィルタ処理がサポートされているかどうかを示す値を取得します。 |
| TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) |
参照FilterableAttribute メソッド
パブリック メソッド| 名前 | 説明 | |
|---|---|---|
| Equals | オーバーロードされます。 オーバーライドされます。 |
| GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。) |
| GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。) |
| GetHashCode | オーバーライドされます。 このインスタンスのハッシュ コードを返します。 |
| GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
| IsDefaultAttribute | オーバーライドされます。 FilterableAttribute クラスの現在のインスタンスが Default 属性に等しいかどうかを判断します。 |
| IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。) |
| IsObjectFilterable | 指定した Object でデバイスのフィルタ処理がサポートされているかどうかを判断します。 |
| IsPropertyFilterable | プロパティでデバイスのフィルタ処理がサポートされているかどうかを判断します。 |
| IsTypeFilterable | 指定したデータ型でデバイスのフィルタ処理がサポートされているかどうかを判断します。 |
| Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。) |
| ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
| ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |
プロテクト メソッド| 名前 | 説明 | |
|---|---|---|
| Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
| MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
参照FilterableAttribute メンバ
属性を適用するプロパティでデバイスのフィルタ処理をサポートするかどうかを指定します。このクラスは継承できません。
FilterableAttribute データ型で公開されるメンバを以下の表に示します。
パブリック コンストラクタ
パブリック フィールド| 名前 | 説明 | |
|---|---|---|
| Default | 既定のプロパティ設定を持つ定義済みの FilterableAttribute オブジェクトを表します。このフィールドは読み取り専用です。 |
| No | プロパティでデバイスのフィルタ処理がサポートされていないことを示す定義済みの FilterableAttribute オブジェクトを表します。このフィールドは読み取り専用です。 |
| Yes | プロパティでデバイスのフィルタ処理がサポートされていることを示す定義済みの FilterableAttribute オブジェクトを表します。このフィールドは読み取り専用です。 |
パブリック プロパティ| 名前 | 説明 | |
|---|---|---|
| Filterable | FilterableAttribute 属性を適用するプロパティでデバイスのフィルタ処理がサポートされているかどうかを示す値を取得します。 |
| TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) |
パブリック メソッド| 名前 | 説明 | |
|---|---|---|
| Equals | オーバーロードされます。 オーバーライドされます。 |
| GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。) |
| GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。) |
| GetHashCode | オーバーライドされます。 このインスタンスのハッシュ コードを返します。 |
| GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
| IsDefaultAttribute | オーバーライドされます。 FilterableAttribute クラスの現在のインスタンスが Default 属性に等しいかどうかを判断します。 |
| IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。) |
| IsObjectFilterable | 指定した Object でデバイスのフィルタ処理がサポートされているかどうかを判断します。 |
| IsPropertyFilterable | プロパティでデバイスのフィルタ処理がサポートされているかどうかを判断します。 |
| IsTypeFilterable | 指定したデータ型でデバイスのフィルタ処理がサポートされているかどうかを判断します。 |
| Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。) |
| ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
| ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |
プロテクト メソッド| 名前 | 説明 | |
|---|---|---|
| Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
| MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
参照- FilterableAttributeのページへのリンク