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; } } } }


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のページへのリンク