[This is preliminary documentation and is subject to change.]
Creates a new binding source and adds it to the specified parents ChildBindingSources.
Namespace: CalculationWorks.ViewModel.Forms
Assembly: CalculationWorks.ViewModel.Forms (in CalculationWorks.ViewModel.Forms.dll) Version: 1.1.0.0
Syntax
protected TBindingSource AddBranchBindingSource<TBindingSource>( string name, BcfBindingSource parent, string relationName, Func<BcfBindingSourceBuilder, TBindingSource> createBindingSource ) where TBindingSource : BcfBindingSource
Parameters
- name
- Type: SystemString
The name. - parent
- Type: CalculationWorks.ViewModel.FormsBcfBindingSource
The parent BcfBindingSource. - relationName
- Type: SystemString
Name of the relation. - createBindingSource
- Type: SystemFuncBcfBindingSourceBuilder, TBindingSource
TBindingSource constructor.
Type Parameters
- TBindingSource
- The type of the binding source.
Return Value
Type: TBindingSourceTBindingSource.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | name is null |
ArgumentNullException | parent is null |
ArgumentNullException | relationName is null |
ArgumentNullException | createBindingSource is null |
ArgumentException | parent not registered in this BcfHierarchicalViewManager |
ArgumentException | relationName is not in tables parent relations |
ArgumentException | name is not unique |
See Also