BindingSource.SupportsSearching プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

リストが IBindingList で、Find メソッドを使用した検索をサポートしている場合は true。それ以外の場合は 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."); } }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- BindingSource.SupportsSearching プロパティのページへのリンク