The variant interface.
More...
The variant interface.
Definition at line 9 of file IVariant.cs.
◆ CheckConvert()
Checks whether the variant can be converted to another type.
- Parameters
-
- Returns
- Result whether the conversion is possible
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ Clone()
Clones the value.
- Returns
- Result of clone
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
InvalidOperationException | Object ist not cloneable. |
Implemented in Variant.
◆ Equals()
Checks whether the values are equal.
- Parameters
-
other | Reference to variant |
- Returns
- Returns whether the values are equal
Implemented in Variant.
◆ GetHashCode()
Gets the hash code of the variant.
Implemented in Variant.
◆ ToBool()
Converts the value to bool.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToBoolArray()
Converts the value to an array of bool value.
- Returns
- An array of bool values
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToByte()
Converts the value to an 8-bit unsigned integer.
- Returns
- Value of the variant as a byte
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToByteArray()
Converts the value to an array of 8-bit unsigned integers.
- Returns
- An array of bytes
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToDouble()
Converts the value to a double-precision floating-point number.
- Returns
- Value of the variant as a double
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToDoubleArray()
double [] ToDoubleArray |
( |
| ) |
|
Converts the value to an array of double-precision floating-point numbers.
- Returns
- An array of double
Implemented in Variant.
◆ ToFlatbuffers()
ByteBuffer ToFlatbuffers |
( |
| ) |
|
Converts the value to flatbuffers.
- Returns
- ByteBuffer
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToFloat()
Converts the value to float.
- Returns
- Value of the variant as a float
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToFloatArray()
float [] ToFloatArray |
( |
| ) |
|
Converts the value to an array of float.
- Returns
- An array of float
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToInt16()
Converts the value to a 16-bit signed integer.
- Returns
- Value of the variant as a short
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToInt16Array()
short [] ToInt16Array |
( |
| ) |
|
Converts the value to an array of 16-bit signed integers.
- Returns
- An array of short
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToInt32()
Converts the value to a 32-bit signed integer.
- Returns
- Value of the variant as an int
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToInt32Array()
Converts the value to an array of 32-bit signed integers.
- Returns
- An array of int
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToInt64()
Converts the value to a 64-bit signed integer.
- Returns
- Value of the variant as a long
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToInt64Array()
Converts the value to an array of 64-bit signed integers.
- Returns
- An array of long
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToRawByteArray()
byte [] ToRawByteArray |
( |
| ) |
|
Converts the value to an array of 8-bit raw integers.
- Returns
- An array of byte
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToSByte()
Converts the value to an 8-bit signed integer.
- Returns
- Value of the variant as a sbyte
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToSByteArray()
sbyte [] ToSByteArray |
( |
| ) |
|
Converts the value to an array of an 8-bit signed integers.
- Returns
- An array of sbytes
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ 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).
- Returns
- Value of the variant as a string
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToStringArray()
string [] ToStringArray |
( |
| ) |
|
Converts the value to an array of strings.
- Returns
- An array of string
Implemented in Variant.
◆ ToUInt16()
Converts the value to a 16-bit unsigned integer.
- Returns
- Value of the variant as a ushort
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToUInt16Array()
ushort [] ToUInt16Array |
( |
| ) |
|
Converts the value to an array of 16-bit unsigned integers.
- Returns
- An array of ushort
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToUInt32()
Converts the value to a 32-bit unsigned integer.
- Returns
- Value of the variant as an uint
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToUInt32Array()
uint [] ToUInt32Array |
( |
| ) |
|
Converts the value to an array of 32-bit unsigned integers.
- Returns
- An array of uint
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToUInt64()
Converts the value to a 64-bit unsigned integer.
- Returns
- Value of the variant as a ulong
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ ToUInt64Array()
ulong [] ToUInt64Array |
( |
| ) |
|
Converts the value to an array of 64-bit unsigned integers.
- Returns
- An array of ulong
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Implemented in Variant.
◆ DataType
Gets the data type of the variant.
- Returns
- Type of the variant
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 40 of file IVariant.cs.
◆ IsArray
Checks if the value is an array.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 52 of file IVariant.cs.
◆ IsBool
Indicates whether the Variant contains a boolean value
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 64 of file IVariant.cs.
◆ IsFlatbuffers
Checks if the value is flatbuffers.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 77 of file IVariant.cs.
◆ IsNull
Checks if the value is null.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 83 of file IVariant.cs.
◆ IsNumber
Indicates whether the Variant contains a numeric value Returns false for numeric arrays and booleans
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 71 of file IVariant.cs.
◆ IsString
Indicates whether the Variant contains a string value
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 58 of file IVariant.cs.
◆ JsonDataType
Gets the data type as JSON string.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 46 of file IVariant.cs.
◆ Timestamp
Gets the time stamp of the variant.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 33 of file IVariant.cs.
◆ Value
Gets the value of the variant.
- Exceptions
-
ObjectDisposedException | Cannot access a disposed object |
Definition at line 15 of file IVariant.cs.
The documentation for this interface was generated from the following file:
- D:/Jenkins/workspace/sdk.datalayer.csharp/datalayer/IVariant.cs