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.");
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



BindingSource.SupportsSearching プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS