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.

Syntax

public bool Contains (object dataSource)

Parameters

dataSource
An object that represents the data source.

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 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 only a data source.

Requirements

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