BindingList.SupportsSearchingCore プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > BindingList.SupportsSearchingCore プロパティの意味・解説 

BindingList.SupportsSearchingCore プロパティ

メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。

リストが検索をサポートしているかどうかを示す値を取得します。

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

Protected Overridable ReadOnly
 Property SupportsSearchingCore As Boolean
Dim value As Boolean

value = Me.SupportsSearchingCore
protected virtual bool SupportsSearchingCore
 { get; }
protected:
virtual property bool SupportsSearchingCore {
    bool get ();
}
/** @property */
protected boolean get_SupportsSearchingCore ()
protected function get SupportsSearchingCore
 () : boolean

プロパティ値
リストが検索をサポートしている場合は true。それ以外の場合は false。既定値は false です。

解説解説

BindingList クラスは検索の基本実装を提供していないため、既定では、SupportsSearchingCore は常に false を返します。検索の実装方法の詳細については、System.ComponentModel.IBindingList.Find メソッドを参照してください。

使用例使用例

SupportsSearchingCore メンバの使用方法を次のコード例に示します。

Public Class MyFontList
    Inherits BindingList(Of Font)

    Protected Overrides ReadOnly
 Property SupportsSearchingCore() As Boolean
        Get
            Return True
        End Get
    End Property
    
    Protected Overrides Function
 FindCore(ByVal prop As PropertyDescriptor,
 _
        ByVal key As Object)
 As Integer
        ' Ignore the prop value and search by family name.
        Dim i As Integer
        While i < Count
            If Items(i).FontFamily.Name.ToLower() = CStr(key).ToLower()
 Then
                Return i
            End If
            i += 1
        End While

        Return -1
    End Function
End Class
    public class MyFontList : BindingList<Font>
    {

        protected override bool SupportsSearchingCore
        {
            get { return true;
 }
        }
        protected override int FindCore(PropertyDescriptor
 prop, object key)
        {
            // Ignore the prop value and search by family name.
            for (int i = 0; i < Count; ++i)
            {
                if (Items[i].FontFamily.Name.ToLower() == ((string)key).ToLower())
                    return i;

            }
            return -1;
        }


    }
  
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

BindingList.SupportsSearchingCore プロパティのお隣キーワード
検索ランキング

   

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



BindingList.SupportsSearchingCore プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS