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) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「FilterableAttribute クラス」の関連用語

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

   

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



FilterableAttribute クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS