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

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

BindingSource.SupportsSearching プロパティ

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

データ ソースが、Find メソッドを使用した検索をサポートしているかどうかを示す値を取得します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Public Overridable ReadOnly
 Property SupportsSearching As Boolean
Dim instance As BindingSource
Dim value As Boolean

value = instance.SupportsSearching
public virtual bool SupportsSearching { get;
 }
public:
virtual property bool SupportsSearching {
    bool get ();
}
/** @property */
public boolean get_SupportsSearching ()
public function get SupportsSearching
 () : boolean

プロパティ値
リストが IBindingList で、Find メソッドを使用した検索をサポートしている場合は true。それ以外の場合は false。

解説解説

データ ソースが IBindingList でない場合、SupportsSearching は常に false を返します。

使用例使用例

SupportsSearching メンバの使用方法を次のコード例に示します。詳細については、クラスの概要のトピックを参照してください。

    Private Sub button1_Click(ByVal
 sender As Object, ByVal
 e As EventArgs) _
        Handles button1.Click

        If binding1.SupportsSearching <> True
 Then
            MessageBox.Show("Cannot search the list.")
        Else
            Dim foundIndex As Integer
 = binding1.Find("Name", textBox1.Text)
            If foundIndex > -1 Then
                listBox1.SelectedIndex = foundIndex
            Else
                MessageBox.Show("Font was not found.")
            End If
        End If

    End Sub
End Class
private void button1_Click(object sender, EventArgs
 e)
{
    if (binding1.SupportsSearching != true)
        MessageBox.Show("Cannot search the list.");
    else
    {
        int foundIndex = binding1.Find("Name", textBox1.Text);
        if (foundIndex > -1)
            listBox1.SelectedIndex = foundIndex;
        else
            MessageBox.Show("Font was not found.");
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

BindingSource.SupportsSearching プロパティのお隣キーワード

   

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



BindingSource.SupportsSearching プロパティのページの著作権

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

©2026 GRAS Group, Inc.RSS