DataValueCreate Method (DataType, Object) TIBCO Spotfire 7.6 API Reference
Creates a DataValue instance of a given data type and with a provided initial value.

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

C#
public static DataValue Create(
	DataType dataType,
	Object initialValue
)

Parameters

dataType
Type: Spotfire.Dxp.DataDataType
A non-null DataType instance.
initialValue
Type: SystemObject
The value. If null, the initial value will be null.

Return Value

Type: DataValue
A new DataValue instance.
Exceptions

ExceptionCondition
InvalidCastExceptionIf the initial value is non-null and does not match the data type.
ArgumentNullExceptionIf the data type is null.
Version Information

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference