System.Windows.Forms.BindingContext.Contains Method

Gets a value indicating whether the System.Windows.Forms.BindingContext contains the System.Windows.Forms.BindingManagerBase associated with the specified data source and data member.

Syntax

public bool Contains (object dataSource, string dataMember)

Parameters

dataSource
An object that represents the data source.
dataMember
The information needed to resolve to a specific System.Windows.Forms.BindingManagerBase.

Returns

true if the System.Windows.Forms.BindingContext contains the specified System.Windows.Forms.BindingManagerBase; otherwise, false.

Remarks

See the System.Windows.Forms.Binding class for a list of possible data sources and for information about creating bindings between controls and data sources.

See the BindingContext.Item(object) property for information about returning a System.Windows.Forms.BindingManagerBase using a data source and data member.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0