英語で読む

次の方法で共有


BindingSource コンストラクター

定義

BindingSource クラスの新しいインスタンスを初期化します。

オーバーロード

BindingSource()

BindingSource クラスの新しいインスタンスを既定のプロパティ値で初期化します。

BindingSource(IContainer)

BindingSource クラスの新しいインスタンスを初期化し、その BindingSource を指定したコンテナーに追加します。

BindingSource(Object, String)

データ ソースとデータ メンバーを指定して、BindingSource クラスの新しいインスタンスを初期化します。

BindingSource()

ソース:
BindingSource.cs
ソース:
BindingSource.cs
ソース:
BindingSource.cs

BindingSource クラスの新しいインスタンスを既定のプロパティ値で初期化します。

C#
public BindingSource();

注釈

次の表は、このコンストラクターによって初期化された既定 BindingSource のプロパティ値を示しています。

プロパティ 既定値
DataSource null
DataMember Empty
Sort null
Filter null
RaiseListChangedEvents true

こちらもご覧ください

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

BindingSource(IContainer)

ソース:
BindingSource.cs
ソース:
BindingSource.cs
ソース:
BindingSource.cs

BindingSource クラスの新しいインスタンスを初期化し、その BindingSource を指定したコンテナーに追加します。

C#
public BindingSource(System.ComponentModel.IContainer container);

パラメーター

container
IContainer

現在の IContainer を追加する BindingSource

注釈

このコンストラクターは、パラメーターなしのコンストラクターを呼び出し、指定したコンテナーに現在 BindingSource の を追加します。 これは通常、ソリューション プログラマではなく、デザイン時環境の作成者によって使用されます。

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

BindingSource(Object, String)

ソース:
BindingSource.cs
ソース:
BindingSource.cs
ソース:
BindingSource.cs

データ ソースとデータ メンバーを指定して、BindingSource クラスの新しいインスタンスを初期化します。

C#
public BindingSource(object dataSource, string dataMember);
C#
public BindingSource(object? dataSource, string dataMember);

パラメーター

dataSource
Object

BindingSource のデータ ソース。

dataMember
String

バインド先となるデータ ソース内の特定の列またはリストの名前。

適用対象

.NET Framework 4.8.1 およびその他のバージョン
製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9