|
ctrlX Data Layer .NET API
4.3.0
|
![]() |
The IVariant interface. More...
Public Member Functions | |
DLR_RESULT | CheckConvert (DLR_VARIANT_TYPE dataType) |
Gets a value that indicates whether the variant can be converted to another type. | |
Variant | Clone () |
Clones the value. | |
bool | Equals (Variant other) |
Gets a value that indicates whether the values are equal. | |
DLR_RESULT IVariant value | GetDataFromFlatbuffers (IVariant typeFlatbuffers, string query) |
int | GetHashCode () |
Gets the hash code of the variant. | |
bool | ToBool () |
Converts the value to bool. | |
bool[] | ToBoolArray () |
Converts the value to an array of bool value. | |
byte | ToByte () |
Converts the value to an 8-bit unsigned integer. | |
byte[] | ToByteArray () |
Converts the value to an array of 8-bit unsigned integers. | |
DateTime | ToDateTime () |
Converts the value to DateTime. | |
DateTime[] | ToDateTimeArray () |
Converts the value to an array of DateTime. | |
double | ToDouble () |
Converts the value to a double-precision floating-point number. | |
double[] | ToDoubleArray () |
Converts the value to an array of double-precision floating-point numbers. | |
ByteBuffer | ToFlatbuffers () |
Converts the value to flatbuffers. | |
float | ToFloat () |
Converts the value to float. | |
float[] | ToFloatArray () |
Converts the value to an array of float. | |
short | ToInt16 () |
Converts the value to a 16-bit signed integer. | |
short[] | ToInt16Array () |
Converts the value to an array of 16-bit signed integers. | |
int | ToInt32 () |
Converts the value to a 32-bit signed integer. | |
int[] | ToInt32Array () |
Converts the value to an array of 32-bit signed integers. | |
long | ToInt64 () |
Converts the value to a 64-bit signed integer. | |
long[] | ToInt64Array () |
Converts the value to an array of 64-bit signed integers. | |
byte[] | ToRawByteArray () |
Converts the value to an array of 8-bit raw integers. | |
sbyte | ToSByte () |
Converts the value to an 8-bit signed integer. | |
sbyte[] | ToSByteArray () |
Converts the value to an array of an 8-bit signed integers. | |
string | ToString () |
Converts the value to string. If the value can't be converted for any reason, an empty string is returned. For arrays and numbers an empty string is returned (not implemented yet). | |
string[] | ToStringArray () |
Converts the value to an array of strings. | |
ushort | ToUInt16 () |
Converts the value to a 16-bit unsigned integer. | |
ushort[] | ToUInt16Array () |
Converts the value to an array of 16-bit unsigned integers. | |
uint | ToUInt32 () |
Converts the value to a 32-bit unsigned integer. | |
uint[] | ToUInt32Array () |
Converts the value to an array of 32-bit unsigned integers. | |
ulong | ToUInt64 () |
Converts the value to a 64-bit unsigned integer. | |
ulong[] | ToUInt64Array () |
Converts the value to an array of 64-bit unsigned integers. | |
Public Attributes | |
DLR_RESULT | result |
Gets data of a complex Variant (flatbuffers) by query. | |
Properties | |
DLR_VARIANT_TYPE | DataType [get] |
Gets the data type of the variant. | |
bool | IsArray [get] |
Checks if the value is an array. | |
bool | IsBool [get] |
Gets a value that indicates whether the Variant contains a boolean value. | |
bool | IsFlatbuffers [get] |
Checks if the value is flatbuffers. | |
bool | IsNull [get] |
Checks if the value is null. | |
bool | IsNumber [get] |
Gets a value that indicates whether the Variant contains a numeric value Returns false for numeric arrays and booleans. | |
bool | IsString [get] |
Gets a value that indicates whether the Variant contains a string value. | |
string | JsonDataType [get] |
Gets the data type as JSON string. | |
object | Value [get] |
Gets the value of the variant. | |
![]() | |
bool | IsDisposed [get] |
Checks disposed. | |
The IVariant interface.
Definition at line 9 of file IVariant.cs.
DLR_RESULT CheckConvert | ( | DLR_VARIANT_TYPE | dataType | ) |
Gets a value that indicates whether the variant can be converted to another type.
dataType | Destination type. |
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Variant Clone | ( | ) |
Clones the value.
ObjectDisposedException | Cannot access a disposed object. |
InvalidOperationException | Object ist not cloneable. |
Implemented in Variant.
bool Equals | ( | Variant | other | ) |
Gets a value that indicates whether the values are equal.
other | Reference to variant. |
Implemented in Variant.
int GetHashCode | ( | ) |
Gets the hash code of the variant.
Implemented in Variant.
bool ToBool | ( | ) |
Converts the value to bool.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
bool[] ToBoolArray | ( | ) |
Converts the value to an array of bool value.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
byte ToByte | ( | ) |
Converts the value to an 8-bit unsigned integer.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
byte[] ToByteArray | ( | ) |
Converts the value to an array of 8-bit unsigned integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
DateTime ToDateTime | ( | ) |
Converts the value to DateTime.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
DateTime[] ToDateTimeArray | ( | ) |
double ToDouble | ( | ) |
Converts the value to a double-precision floating-point number.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
double[] ToDoubleArray | ( | ) |
Converts the value to an array of double-precision floating-point numbers.
Implemented in Variant.
ByteBuffer ToFlatbuffers | ( | ) |
Converts the value to flatbuffers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
float ToFloat | ( | ) |
Converts the value to float.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
float[] ToFloatArray | ( | ) |
Converts the value to an array of float.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
short ToInt16 | ( | ) |
Converts the value to a 16-bit signed integer.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
short[] ToInt16Array | ( | ) |
Converts the value to an array of 16-bit signed integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
int ToInt32 | ( | ) |
Converts the value to a 32-bit signed integer.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
int[] ToInt32Array | ( | ) |
Converts the value to an array of 32-bit signed integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
long ToInt64 | ( | ) |
Converts the value to a 64-bit signed integer.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
long[] ToInt64Array | ( | ) |
Converts the value to an array of 64-bit signed integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
byte[] ToRawByteArray | ( | ) |
Converts the value to an array of 8-bit raw integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
sbyte ToSByte | ( | ) |
Converts the value to an 8-bit signed integer.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
sbyte[] ToSByteArray | ( | ) |
Converts the value to an array of an 8-bit signed integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
string ToString | ( | ) |
Converts the value to string. If the value can't be converted for any reason, an empty string is returned. For arrays and numbers an empty string is returned (not implemented yet).
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
string[] ToStringArray | ( | ) |
ushort ToUInt16 | ( | ) |
Converts the value to a 16-bit unsigned integer.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
ushort[] ToUInt16Array | ( | ) |
Converts the value to an array of 16-bit unsigned integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
uint ToUInt32 | ( | ) |
Converts the value to a 32-bit unsigned integer.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
uint[] ToUInt32Array | ( | ) |
Converts the value to an array of 32-bit unsigned integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
ulong ToUInt64 | ( | ) |
Converts the value to a 64-bit unsigned integer.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
ulong[] ToUInt64Array | ( | ) |
Converts the value to an array of 64-bit unsigned integers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
DLR_RESULT result |
Gets data of a complex Variant (flatbuffers) by query.
typeFlatbuffers | Type (schema) of the flatbuffers. |
query | Query string |
ObjectDisposedException | Cannot access a disposed object. |
ArgumentNullException | Argument cannot be null. |
Definition at line 281 of file IVariant.cs.
|
get |
Gets the data type of the variant.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 34 of file IVariant.cs.
|
get |
Checks if the value is an array.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 46 of file IVariant.cs.
|
get |
Gets a value that indicates whether the Variant contains a boolean value.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 58 of file IVariant.cs.
|
get |
Checks if the value is flatbuffers.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 71 of file IVariant.cs.
|
get |
Checks if the value is null.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 77 of file IVariant.cs.
|
get |
Gets a value that indicates whether the Variant contains a numeric value Returns false for numeric arrays and booleans.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 65 of file IVariant.cs.
|
get |
Gets a value that indicates whether the Variant contains a string value.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 52 of file IVariant.cs.
|
get |
Gets the data type as JSON string.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 40 of file IVariant.cs.
|
get |
Gets the value of the variant.
ObjectDisposedException | Cannot access a disposed object. |
Implemented in Variant.
Definition at line 15 of file IVariant.cs.