DocumentNodeCreateRuntimeConstantT Method

Spotfire 14.3 API Reference
Creates a runtime constant. A runtime constant is a property in the document model whose value is computed once when first accessed. The value is then disposed along with the DocumentNode.

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

C#
protected void CreateRuntimeConstant<T>(
	out RuntimeConstant<T> field,
	PropertyComputer<T> factoryMethod
)

Parameters

field
Type: Spotfire.Dxp.Framework.DocumentModelRuntimeConstantT
The field that the RuntimeConstantT will be assigned to. This shall be a readonly field.
factoryMethod
Type: Spotfire.Dxp.Framework.DocumentModelPropertyComputerT
A delegate that creates the value of the runtime constant.

Type Parameters

T
The type of the runtime constant.
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