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: 66.0.19621.1485 (66.0.19621.1485)
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: DataValueA new DataValue instance.
Exceptions
Exception | Condition |
---|---|
InvalidCastException | If the initial value is non-null and does not match the data type. |
ArgumentNullException | If the data type is null. |
Version Information
Supported in: 14.4, 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also