CalculationWorks Logo
BcfHierarchicalViewManagerAddRootBindingSourceTBindingSource Method CalculationWorks BCF Library 1.1 for .NET Framework 4.5

[This is preliminary documentation and is subject to change.]

Creates and registers a new binding source.

Namespace: CalculationWorks.ViewModel.Forms
Assembly: CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 1.1.0.0
Syntax

protected TBindingSource AddRootBindingSource<TBindingSource>(
	string name,
	string tableName,
	Func<BcfBindingSourceBuilder, TBindingSource> createBindingSource
)
where TBindingSource : BcfBindingSource

Parameters

name
Type: SystemString
The name.
tableName
Type: SystemString
Name of the table.
createBindingSource
Type: SystemFuncBcfBindingSourceBuilder, TBindingSource
TBindingSource constructor.

Type Parameters

TBindingSource
The type of the binding source.

Return Value

Type: TBindingSource
TBindingSource.
Exceptions

ExceptionCondition
ArgumentNullExceptionname is null
ArgumentNullExceptiontableName is null
ArgumentNullExceptioncreateBindingSource is null
ArgumentExceptiontableName is not in DefaultViews
ArgumentExceptionname is not unique
See Also

Reference