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

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

Registers the type of the view.

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

public void RegisterViewType<TTableViewBase>(
	string tableName,
	Func<BcfTableViewBuilder, TTableViewBase> viewConstructor
)
where TTableViewBase : BcfTableViewBase

Parameters

tableName
Type: SystemString
Name of the table.
viewConstructor
Type: SystemFuncBcfTableViewBuilder, TTableViewBase
The view constructor.

Type Parameters

TTableViewBase
The type of the t table view base.
Exceptions

ExceptionCondition
ArgumentNullExceptiontableName
InvalidOperationExceptioninstance is already in use
See Also

Reference