Click or drag to resize
CalculationWorks Logo
BcfTableViewFactoryRegisterViewTypeTTableViewBase Method
Registers the type of the view.

Namespace: CalculationWorks.ViewModel.Windows
Assembly: CalculationWorks.ViewModel.Windows (in CalculationWorks.ViewModel.Windows.dll) Version: 3.2.1.2
Syntax
public void RegisterViewType<TTableViewBase>(
	string tableName,
	Func<BcfTableViewBuilder, TTableViewBase> viewConstructor,
	IEnumerable<string> reflectedColumns = null,
	IDictionary<string, string> reflectedChildViews = null,
	IDictionary<string, string> reflectedParentRowViews = null
)
where TTableViewBase : BcfTableViewBase

Parameters

tableName
Type: SystemString
Name of the table.
viewConstructor
Type: SystemFuncBcfTableViewBuilder, TTableViewBase
The view constructor.
reflectedColumns (Optional)
Type: System.Collections.GenericIEnumerableString
The reflected columns.
reflectedChildViews (Optional)
Type: System.Collections.GenericIDictionaryString, String
The reflected child views.
reflectedParentRowViews (Optional)
Type: System.Collections.GenericIDictionaryString, String
The reflected parent row views.

Type Parameters

TTableViewBase
The type of the table view base.
Exceptions
ExceptionCondition
ArgumentNullException

tableName is null

or

viewConstructor is null

InvalidOperationExceptionInstance is locked. The factory instance is already in use.
Version Information

CalculationWorks.ViewModel.Windows

Supported in: 3.2, 3.0
See Also