DocumentNodeCreateRuntimePropertyT Method (PropertyName, RuntimePropertyT, DependencyDeclarer, PropertyComputerT) TIBCO Spotfire 7.6 API Reference

Note: This API is now obsolete.

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

C#
[ObsoleteAttribute("Use CreateRuntimeProperty<T> with StatelessDependencyDeclarer instead")]
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
protected void CreateRuntimeProperty<T>(
	PropertyName propertyName,
	out RuntimeProperty<T> field,
	DependencyDeclarer dependencyDeclarer,
	PropertyComputer<T> propertyComputer
)

Parameters

propertyName
Type: Spotfire.Dxp.Framework.DocumentModelPropertyName
The name of the property.
field
Type: Spotfire.Dxp.Framework.DocumentModelRuntimePropertyT
The field that the RuntimePropertyT will be assigned to. This shall be a readonly field.
dependencyDeclarer
Type: Spotfire.Dxp.Framework.DocumentModelDependencyDeclarer
A delegate that declares the properties that the created RuntimeProperty depends on.
propertyComputer
Type: Spotfire.Dxp.Framework.DocumentModelPropertyComputerT
A delegate that computes the value of the RuntimeProperty.

Type Parameters

T
The Type of the values held by the runtime property. This must be an immutable type.
Remarks

A runtime property is a property in the document model whose value is computed based on the values of other properties. The value of a runtime property is computed when the value is asked for. The result of the computation is kept so that it need not be recomputed if it is needed again.

The value in the runtime property is invalidated (that is cleared) when any property that the runtime node depends on is changed.

Version Information

Obsolete (compiler warning) in 7.6
Obsolete (compiler warning) in 7.5
Obsolete (compiler warning) in 7.0
Obsolete (compiler warning) in 6.5
Obsolete (compiler warning) in 6.0
Obsolete (compiler warning) in 5.5
Obsolete (compiler warning) in 5.0
See Also

Reference