DataType Class

Spotfire 14.3 API Reference
This class contains information about a Spotfire data type and the properties of that data type. This is an enumeration class with one static instance for each of the supported data types.
Inheritance Hierarchy

SystemObject
  Spotfire.Dxp.DataDataType

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

C#
[SerializableAttribute]
[PersistenceVersionAttribute(6, 0)]
[ImmutableAttribute]
public sealed class DataType : IObjectReference

The DataType type exposes the following members.

Properties

  NameDescription
Public propertyAutoIndexUniqueValueCount
Gets the unique value count threshold value for auto-indexing. An imported column with a unique value count less or equal to this threshold will always be indexed.
Public propertyStatic memberAvailableDataTypes
Gets the available data types.
Public propertyDefaultComparer
Gets the default comparer for this DataType.
Public propertyDefaultValue
Gets the default value for the underlying type.
Public propertyFormatter
Gets a default, user localized, read-only formatter for this data type.
Public propertyInvariantFormatter
Gets a read-only formatter for this data type that does invariant formatting. This formatting is independent of localization and uses InvariantCulture.
Public propertyIsNumeric
Gets a value indicating whether the data type is numeric or not, that is, Integer, Currency, Real, LongInteger or SingleReal
Public propertyIsSimple
Gets a value indicating whether the data type is considered simple or not. E.g. String and int (etc) are simple, Binary is not.
Public propertyIsTime
Gets a value indicating whether the data type represents time or not, that is, Date, Time or DateTime.
Public propertyName
Gets the type name.
Public propertyNullValue
Gets a null (empty) value for the underlying type.
Public propertyRepresentationType
Gets the representation type of the data type. This is the .NET type that values of this data type are stored as.
Top
Methods

  NameDescription
Public methodCreateCultureSpecificFormatter(CultureInfo) Obsolete.
Creates a culture specific formatter for this data type.

A formatter may configured by casting it to the corresponding formatter class. For numeric types (DataType.Integer, DataType.Long and DataType.Real) the formatter class is NumberFormatter. For date/time types (DataType.Date, DataType.Time and DataType.DateTime it is DateTimeFormatter. The formatter class for DataType.String is StringFormatter.

Public methodCreateCultureSpecificFormatter(String)
Creates a culture specific formatter for this data type.

A formatter may configured by casting it to the corresponding formatter class. For numeric types (DataType.Integer, DataType.Long and DataType.Real) the formatter class is NumberFormatter. For date/time types (DataType.Date, DataType.Time and DataType.DateTime it is DateTimeFormatter. The formatter class for DataType.String is StringFormatter.

Public methodCreateFormatter Obsolete.
Creates a user localized formatter for this data type.

A formatter may configured by casting it to the corresponding formatter class. For numeric types (DataType.Integer, DataType.Long and DataType.Real) the formatter class is NumberFormatter. For date/time types (DataType.Date, DataType.Time and DataType.DateTime it is DateTimeFormatter. The formatter class for DataType.String is StringFormatter.

Public methodCreateFormatter(CultureInfo) Obsolete.
Creates a culture specific formatter for this data type.

A formatter may configured by casting it to the corresponding formatter class. For numeric types (DataType.Integer, DataType.Long and DataType.Real) the formatter class is NumberFormatter. For date/time types (DataType.Date, DataType.Time and DataType.DateTime it is DateTimeFormatter. The formatter class for DataType.String is StringFormatter.

Public methodCreateList Obsolete.
Create an array of the representation type.
Public methodCreateLocalizedFormatter
Creates a user localized formatter for this data type.

A formatter may configured by casting it to the corresponding formatter class. For numeric types (DataType.Integer, DataType.Long and DataType.Real) the formatter class is NumberFormatter. For date/time types (DataType.Date, DataType.Time and DataType.DateTime it is DateTimeFormatter. The formatter class for DataType.String is StringFormatter.

Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberFromExternalDataType
Converts a DataSourceDataType to a DataType.
Public methodStatic memberFromImportReaderColumn
Converts the type of a column, from an IDataReader, to the DataType used in the Data Manager.
Public methodStatic memberFromImportType
Converts the type from an import source to the DataType used in the Data Manager.
Public methodStatic memberFromName
Looks up a data type by name.
Public methodStatic memberGetDataType
Gets the DataType with the given name.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRealObject
Returns the real object that should be deserialized, rather than the object that the serialized stream specifies.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Get the name of the data type.
(Overrides ObjectToString.)
Public methodStatic memberTryConvertFromNumeric
Converts a value from a numeric (double) representation, to the value representation defined by dataType.
Public methodStatic memberTryConvertToNumeric
Converts a value to a numeric (double) representation.
Public methodValidate
Validates a value with the representation type.
Top
Fields

  NameDescription
Public fieldStatic memberBinary
Binary type.
Public fieldStatic memberBoolean
Boolean type.
Public fieldStatic memberCurrency
Currency type.
Public fieldStatic memberDate
Date type.
Public fieldStatic memberDateTime
DateTime type (both date and a time stamp).
Public fieldStatic memberInteger
Integer type.
Public fieldStatic memberLongInteger
Long integer type.
Public fieldStatic memberReal
Real (double) type.
Public fieldStatic memberSingleReal
Short Real (float) type.
Public fieldStatic memberString
String type.
Public fieldStatic memberTime
Timestamp type (not including date).
Public fieldStatic memberTimeSpan
Time span type.
Public fieldStatic memberUndefined
Undefined type. This is not a real data type but can be used in some places when any type is acceptable.
Top
Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference