DataValueCreateT Method (T, Boolean)

TIBCO Spotfire 11.4 API Reference
Creates a DataValue instance of a given runtime type and with a provided initial value. This method is redundant but useful in practice.

Namespace:  Spotfire.Dxp.Data
Assembly:  Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 51.0.16121.3915 (51.0.16121.3915)
Syntax

C#
public static DataValue<T> Create<T>(
	T initialValue,
	bool isValid
)

Parameters

initialValue
Type: T
The initial value. If null, then IsNullValue will be true.
isValid
Type: SystemBoolean
If true, the initial value is valid. If false, the initial value should not be used, and IsNullValue will be set to true.

Type Parameters

T
The generic type, which must match the data type.

Return Value

Type: DataValueT
A new DataValue instance.
Exceptions

ExceptionCondition
ArgumentExceptionIf isValid is true and initialValue is null, which is contradictory information.
Version Information

Supported in: 11.4, 11.3, 11.2, 11.1, 11.0, 10.10, 7.11
See Also

Reference