FilterableAttributeとは? わかりやすく解説

FilterableAttribute クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

属性を適用するプロパティでデバイスのフィルタ処理をサポートするかどうかを指定します。このクラスは継承できません。

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property)>
 _
Public NotInheritable Class
 FilterableAttribute
    Inherits Attribute
Dim instance As FilterableAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property)] 
public sealed class FilterableAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property)] 
public ref class FilterableAttribute sealed
 : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property)
 */ 
public final class FilterableAttribute extends
 Attribute
AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property) 
public final class FilterableAttribute extends
 Attribute
解説解説
使用例使用例

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 のセキュリティ.NET Framework のセキュリティ
継承階層継承階層
System.Object
   System.Attribute
    System.Web.UI.FilterableAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

FilterableAttribute コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

FilterableAttribute クラスの新しいインスタンスを初期化します。

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Sub New ( _
    filterable As Boolean _
)
Dim filterable As Boolean

Dim instance As New FilterableAttribute(filterable)
public FilterableAttribute (
    bool filterable
)
public:
FilterableAttribute (
    bool filterable
)
public FilterableAttribute (
    boolean filterable
)
public function FilterableAttribute (
    filterable : boolean
)

パラメータ

filterable

属性を適用するプロパティでデバイスのフィルタ処理がサポートされていることを示す場合は true。それ以外の場合は、false。

解説解説
使用例使用例

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
FilterableAttribute クラス
FilterableAttribute メンバ
System.Web.UI 名前空間
Filterable

FilterableAttribute フィールド


FilterableAttribute プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Filterable FilterableAttribute 属性を適用するプロパティでデバイスのフィルタ処理がサポートされているかどうかを示す値を取得します。
パブリック プロパティ TypeId  派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。)
参照参照

関連項目

FilterableAttribute クラス
System.Web.UI 名前空間
Filterable

その他の技術情報

属性を使用したメタデータの拡張

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 から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

FilterableAttribute クラス
System.Web.UI 名前空間
Filterable

その他の技術情報

属性を使用したメタデータの拡張

FilterableAttribute メンバ

属性を適用するプロパティでデバイスのフィルタ処理をサポートするかどうかを指定します。このクラスは継承できません。

FilterableAttribute データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド FilterableAttribute 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 から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

FilterableAttribute クラス
System.Web.UI 名前空間
Filterable

その他の技術情報

属性を使用したメタデータの拡張



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「FilterableAttribute」の関連用語

FilterableAttributeのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



FilterableAttributeのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS