DataValue Create Method (DataType, Object) TIBCO Spotfire 6.5 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: 14.10.7525.5058 (14.10.7525.5058)
Syntax

public static DataValue Create(
	DataType dataType,
	Object initialValue
)

Parameters

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

Return Value

Type: DataValue
A new DataValue instance.
Exceptions

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

Supported in: 6.5, 6.0, 5.5, 5.0, 4.5
See Also