ViewRegistryCreateView Method (Type, Object)

Spotfire 14.3 API Reference
Creates and binds a view object of the specified viewBaseType type to the specified model object.

Namespace:  Spotfire.Dxp.Framework.ApplicationModel
Assembly:  Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
public Object CreateView(
	Type viewBaseType,
	Object model
)

Parameters

viewBaseType
Type: SystemType
The view type to search for. The returned view's type will be assignable to this type.
model
Type: SystemObject
The model object to be bound to the returned view. Its type will be used when searching for the view. It will be supplied as the argument to the view's constructor.

Return Value

Type: Object
A view bound to model, or null if none is found. The returned view's type will be assignable to viewBaseType
Exceptions

ExceptionCondition
InvalidOperationExceptionIf the required constructor cannot be found. If the view cannot be constructed for other reasons.
ExceptionIf the view's constructor throws an Exception that exception will be re-thrown.
Remarks

The View found in the register must have a public constructor taking one argument of model type.
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference