.NET Based OPC UA Client/Server SDK  3.3.3.537
UnifiedAutomation.UaBase.Variant Struct Reference

A union of all support UA data types. More...

Inherits IFormattable, and ICloneable.

Public Member Functions

 Variant (object source, TypeInfo info)
 Initializes a new instance of the Variant struct. More...
 
 Variant (bool source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< bool > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (sbyte source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< sbyte > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (byte source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< byte > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (short source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< short > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (ushort source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< ushort > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (int source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< int > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (uint source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< uint > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (long source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< long > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (ulong source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< ulong > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (float source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< float > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (double source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< double > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (DateTime source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< DateTime > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (Guid source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< Guid > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (Uuid source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< Uuid > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (string source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< string > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< byte[]> source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (QualifiedName source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< QualifiedName > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (LocalizedText source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< LocalizedText > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (NodeId source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< NodeId > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (ExpandedNodeId source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< ExpandedNodeId > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (StatusCode source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< StatusCode > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (XmlString source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< XmlString > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEncodeable source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< IEncodeable > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (ExtensionObject source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< ExtensionObject > source)
 Initializes a new instance of the Variant struct. More...
 
 Variant (IEnumerable< Variant > source)
 Initializes a new instance of the Variant struct. More...
 
object Clone ()
 Creates a deep copy of the object. More...
 
string ToString (string format, IFormatProvider formatProvider)
 Formats the object as a string. More...
 
string Format (IFormatProvider formatProvider)
 Formats a node id as a string. More...
 
GetValue< T > (T defaultValue)
 Gets the value there is no error and it is the correct type. More...
 
Variant ConvertTo (BuiltInType targetType)
 Converts the specified target type. More...
 
void setByteArray (IEnumerable< byte > ba)
 Sets a ByteArray explicitly. There is no conversion to ByteString More...
 
bool ToBoolean ()
 Returns the value as a Boolean. More...
 
sbyte ToSByte ()
 Returns the value as a SByte. More...
 
byte ToByte ()
 Returns the value as a Byte. More...
 
short ToInt16 ()
 Returns the value as an Int16. More...
 
ushort ToUInt16 ()
 Returns the value as a UInt16. More...
 
int ToInt32 ()
 Returns the value as an Int32. More...
 
uint ToUInt32 ()
 Returns the value as a UInt32. More...
 
long ToInt64 ()
 Returns the value as an Int64. More...
 
ulong ToUInt64 ()
 Returns the value as a UInt64. More...
 
float ToFloat ()
 Returns the value as a Float. More...
 
double ToDouble ()
 Returns the value as a Double. More...
 
override string ToString ()
 Returns the value as a String. More...
 
DateTime ToDateTime ()
 Returns the value as a DateTime. More...
 
Uuid ToGuid ()
 Returns the value as a Guid. More...
 
byte[] ToByteString ()
 Returns the value as a ByteString. More...
 
XmlString ToXmlElement ()
 Returns the value as an XmlElement. More...
 
NodeId ToNodeId ()
 Returns the value as a NodeId. More...
 
ExpandedNodeId ToExpandedNodeId ()
 Returns the value as an ExpandedNodeId. More...
 
QualifiedName ToQualifiedName ()
 Returns the value as a QualifiedName. More...
 
LocalizedText ToLocalizedText ()
 Returns the value as a LocalizedText. More...
 
StatusCode ToStatusCode ()
 Returns the value as a StatusCode. More...
 
ExtensionObject ToExtensionObject ()
 Returns the value as an ExtensionObject. More...
 
bool[] ToBooleanArray ()
 Returns the value as an array of Booleans. More...
 
sbyte[] ToSByteArray ()
 Returns the value as an array of SBytes. More...
 
byte[] ToByteArray ()
 Returns the value as an array of Bytes. More...
 
short[] ToInt16Array ()
 Returns the value as an array of Int16s. More...
 
ushort[] ToUInt16Array ()
 Returns the value as an array of UInt16s. More...
 
int[] ToInt32Array ()
 Returns the value as an array of Int32s. More...
 
uint[] ToUInt32Array ()
 Returns the value as an array of UInt32s. More...
 
long[] ToInt64Array ()
 Returns the value as an array of Int64s. More...
 
ulong[] ToUInt64Array ()
 Returns the value as an array of UInt64s. More...
 
float[] ToFloatArray ()
 Returns the value as an array of Floats. More...
 
double[] ToDoubleArray ()
 Returns the value as an array of Doubles. More...
 
string[] ToStringArray ()
 Returns the value as an array of Strings. More...
 
DateTime[] ToDateTimeArray ()
 Returns the value as an array of DateTimes. More...
 
Uuid[] ToGuidArray ()
 Returns the value as an array of Guids. More...
 
byte[][] ToByteStringArray ()
 Returns the value as an array of ByteStrings. More...
 
XmlString[] ToXmlElementArray ()
 Returns the value as an array of XmlElements. More...
 
NodeId[] ToNodeIdArray ()
 Returns the value as an array of NodeIds. More...
 
ExpandedNodeId[] ToExpandedNodeIdArray ()
 Returns the value as an array of ExpandedNodeIds. More...
 
QualifiedName[] ToQualifiedNameArray ()
 Returns the value as an array of QualifiedNames. More...
 
LocalizedText[] ToLocalizedTextArray ()
 Returns the value as an array of LocalizedTexts. More...
 
StatusCode[] ToStatusCodeArray ()
 Returns the value as an array of StatusCodes. More...
 
ExtensionObject[] ToExtensionObjectArray ()
 Returns the value as an array of ExtentionObjects. More...
 
Variant[] ToVariantArray ()
 Returns the value as an array of Variants. More...
 

Static Public Member Functions

static implicit operator Variant (bool source)
 Performs an implicit conversion from System.Boolean to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (bool[] source)
 Performs an implicit conversion from System.Boolean to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (sbyte source)
 Performs an implicit conversion from System.SByte to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (sbyte[] source)
 Performs an implicit conversion from System.SByte to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (byte source)
 Performs an implicit conversion from System.Byte to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (byte[] source)
 Performs an implicit conversion from System.Byte to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (short source)
 Performs an implicit conversion from System.Int16 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (short[] source)
 Performs an implicit conversion from System.Int16 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (ushort source)
 Performs an implicit conversion from System.UInt16 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (ushort[] source)
 Performs an implicit conversion from System.UInt16 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (int source)
 Performs an implicit conversion from System.Int32 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (int[] source)
 Performs an implicit conversion from System.Int32 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (uint source)
 Performs an implicit conversion from System.UInt32 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (uint[] source)
 Performs an implicit conversion from System.UInt32 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (long source)
 Performs an implicit conversion from System.Int64 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (long[] source)
 Performs an implicit conversion from System.Int64 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (ulong source)
 Performs an implicit conversion from System.UInt64 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (ulong[] source)
 Performs an implicit conversion from System.UInt64 to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (float source)
 Performs an implicit conversion from System.Single to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (float[] source)
 Performs an implicit conversion from System.Single to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (double source)
 Performs an implicit conversion from System.Double to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (double[] source)
 Performs an implicit conversion from System.Double to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (DateTime source)
 Performs an implicit conversion from System.DateTime to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (DateTime[] source)
 Performs an implicit conversion from System.DateTime to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (Guid source)
 Performs an implicit conversion from System.Guid to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (Guid[] source)
 Performs an implicit conversion from System.Guid to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (Uuid source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.Uuid to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (Uuid[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.Uuid to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (string source)
 Performs an implicit conversion from System.String to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (string[] source)
 Performs an implicit conversion from System.String to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (byte[][] source)
 Performs an implicit conversion from System.Byte to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (QualifiedName source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.QualifiedName to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (QualifiedName[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.QualifiedName to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (LocalizedText source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.LocalizedText to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (LocalizedText[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.LocalizedText to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (NodeId source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.NodeId to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (NodeId[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.NodeId to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (ExpandedNodeId source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.ExpandedNodeId to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (ExpandedNodeId[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.ExpandedNodeId to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (StatusCode source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.StatusCode to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (StatusCode[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.StatusCode to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (XmlString source)
 Performs an implicit conversion from System.Xml.XmlElement to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (XmlString[] source)
 Performs an implicit conversion from System.Xml.XmlElement to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (EncodeableObject source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.EncodeableObject to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (EncodeableObject[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.EncodeableObject to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (ExtensionObject source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.ExtensionObject to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (ExtensionObject[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.ExtensionObject to UnifiedAutomation.UaBase.Variant. More...
 
static implicit operator Variant (Variant[] source)
 Performs an implicit conversion from UnifiedAutomation.UaBase.Variant to UnifiedAutomation.UaBase.Variant. More...
 

Static Public Attributes

static readonly Variant Null = new Variant(null, null)
 A constant representing a Null value. More...
 

Properties

TypeInfo TypeInfo [get]
 Gets the type info. More...
 
object Value [get]
 Gets the value. More...
 
BuiltInType DataType [get]
 Gets the data type for the value. More...
 
int ValueRank [get]
 Gets the value rank. More...
 
bool IsNull [get]
 Gets a value indicating whether the value is null. More...
 
bool IsArray [get]
 Gets a value indicating whether the value is an array with 1 or more dimensions. More...
 
bool IsMatrix [get]
 Gets a value indicating whether the value is a matrix (an array with 2 or more dimensions). More...
 
int ArrayLength [get]
 Gets the total number of elements in the array (-1 if not an array). More...
 
int[] Dimensions [get]
 Gets the dimensions of the array (null if not an array). More...
 

Detailed Description

A union of all support UA data types.

Constructor & Destructor Documentation

UnifiedAutomation.UaBase.Variant.Variant ( object  source,
TypeInfo  info 
)

Initializes a new instance of the Variant struct.

Parameters
infoThe TypeInfo of source. Must match the source if not null.
sourceThe content of the Variant.
UnifiedAutomation.UaBase.Variant.Variant ( bool  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< bool >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( sbyte  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< sbyte >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( byte  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< byte >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( short  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< short >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( ushort  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< ushort >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( int  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< int >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( uint  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< uint >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( long  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< long >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( ulong  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< ulong >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( float  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< float >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( double  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< double >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( DateTime  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< DateTime source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( Guid  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< Guid source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( Uuid  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< Uuid source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( string  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< string >  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< byte[]>  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( QualifiedName  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< QualifiedName source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( LocalizedText  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< LocalizedText source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( NodeId  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< NodeId source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( ExpandedNodeId  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< ExpandedNodeId source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( StatusCode  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< StatusCode source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( XmlString  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< XmlString source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEncodeable  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< IEncodeable source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( ExtensionObject  source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< ExtensionObject source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.
UnifiedAutomation.UaBase.Variant.Variant ( IEnumerable< Variant source)

Initializes a new instance of the Variant struct.

Parameters
sourceThe source.

Member Function Documentation

object UnifiedAutomation.UaBase.Variant.Clone ( )

Creates a deep copy of the object.

Variant UnifiedAutomation.UaBase.Variant.ConvertTo ( BuiltInType  targetType)

Converts the specified target type.

Parameters
targetTypeType of to convert the value to.
Returns
string UnifiedAutomation.UaBase.Variant.Format ( IFormatProvider  formatProvider)

Formats a node id as a string.

T UnifiedAutomation.UaBase.Variant.GetValue< T > ( defaultValue)

Gets the value there is no error and it is the correct type.

Template Parameters
TThe type of value to return.
Parameters
defaultValueThe default value.
Returns
The value unless the value is not of the specified type. The defaultValue is returned on error.
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( bool  source)
static

Performs an implicit conversion from System.Boolean to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( bool[]  source)
static

Performs an implicit conversion from System.Boolean to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( sbyte  source)
static

Performs an implicit conversion from System.SByte to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( sbyte[]  source)
static

Performs an implicit conversion from System.SByte to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( byte  source)
static

Performs an implicit conversion from System.Byte to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( byte[]  source)
static

Performs an implicit conversion from System.Byte to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( short  source)
static

Performs an implicit conversion from System.Int16 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( short[]  source)
static

Performs an implicit conversion from System.Int16 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( ushort  source)
static

Performs an implicit conversion from System.UInt16 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( ushort[]  source)
static

Performs an implicit conversion from System.UInt16 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( int  source)
static

Performs an implicit conversion from System.Int32 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( int[]  source)
static

Performs an implicit conversion from System.Int32 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( uint  source)
static

Performs an implicit conversion from System.UInt32 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( uint[]  source)
static

Performs an implicit conversion from System.UInt32 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( long  source)
static

Performs an implicit conversion from System.Int64 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( long[]  source)
static

Performs an implicit conversion from System.Int64 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( ulong  source)
static

Performs an implicit conversion from System.UInt64 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( ulong[]  source)
static

Performs an implicit conversion from System.UInt64 to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( float  source)
static

Performs an implicit conversion from System.Single to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( float[]  source)
static

Performs an implicit conversion from System.Single to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( double  source)
static

Performs an implicit conversion from System.Double to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( double[]  source)
static

Performs an implicit conversion from System.Double to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( DateTime  source)
static

Performs an implicit conversion from System.DateTime to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( DateTime[]  source)
static

Performs an implicit conversion from System.DateTime to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( Guid  source)
static

Performs an implicit conversion from System.Guid to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( Guid[]  source)
static

Performs an implicit conversion from System.Guid to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( Uuid  source)
static

Performs an implicit conversion from UnifiedAutomation.UaBase.Uuid to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( Uuid[]  source)
static

Performs an implicit conversion from UnifiedAutomation.UaBase.Uuid to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( string  source)
static

Performs an implicit conversion from System.String to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( string[]  source)
static

Performs an implicit conversion from System.String to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( byte  source[][])
static

Performs an implicit conversion from System.Byte to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( QualifiedName  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( QualifiedName[]  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( LocalizedText  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( LocalizedText[]  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( NodeId  source)
static

Performs an implicit conversion from UnifiedAutomation.UaBase.NodeId to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( NodeId[]  source)
static

Performs an implicit conversion from UnifiedAutomation.UaBase.NodeId to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( ExpandedNodeId  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( ExpandedNodeId[]  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( StatusCode  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( StatusCode[]  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( XmlString  source)
static

Performs an implicit conversion from System.Xml.XmlElement to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( XmlString[]  source)
static

Performs an implicit conversion from System.Xml.XmlElement to UnifiedAutomation.UaBase.Variant.

static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( EncodeableObject  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( EncodeableObject[]  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( ExtensionObject  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( ExtensionObject[]  source)
static
static implicit UnifiedAutomation.UaBase.Variant.operator Variant ( Variant[]  source)
static

Performs an implicit conversion from UnifiedAutomation.UaBase.Variant to UnifiedAutomation.UaBase.Variant.

void UnifiedAutomation.UaBase.Variant.setByteArray ( IEnumerable< byte >  ba)

Sets a ByteArray explicitly. There is no conversion to ByteString

Parameters
ba
bool UnifiedAutomation.UaBase.Variant.ToBoolean ( )

Returns the value as a Boolean.

Returns
A Boolean.
bool [] UnifiedAutomation.UaBase.Variant.ToBooleanArray ( )

Returns the value as an array of Booleans.

Returns
An array of Booleans.
byte UnifiedAutomation.UaBase.Variant.ToByte ( )

Returns the value as a Byte.

Returns
An Byte.
byte [] UnifiedAutomation.UaBase.Variant.ToByteArray ( )

Returns the value as an array of Bytes.

Returns
An array of Bytes.
byte [] UnifiedAutomation.UaBase.Variant.ToByteString ( )

Returns the value as a ByteString.

Returns
A ByteString.
byte [][] UnifiedAutomation.UaBase.Variant.ToByteStringArray ( )

Returns the value as an array of ByteStrings.

Returns
An array of ByteStrings.
DateTime UnifiedAutomation.UaBase.Variant.ToDateTime ( )

Returns the value as a DateTime.

Returns
A DateTime.
DateTime [] UnifiedAutomation.UaBase.Variant.ToDateTimeArray ( )

Returns the value as an array of DateTimes.

Returns
An array of DateTimes.
double UnifiedAutomation.UaBase.Variant.ToDouble ( )

Returns the value as a Double.

Returns
A Double.
double [] UnifiedAutomation.UaBase.Variant.ToDoubleArray ( )

Returns the value as an array of Doubles.

Returns
An array of Doubles.
ExpandedNodeId UnifiedAutomation.UaBase.Variant.ToExpandedNodeId ( )

Returns the value as an ExpandedNodeId.

Returns
An ExpandedNodeId.
ExpandedNodeId [] UnifiedAutomation.UaBase.Variant.ToExpandedNodeIdArray ( )

Returns the value as an array of ExpandedNodeIds.

Returns
An array of ExpandedNodeIds.
ExtensionObject UnifiedAutomation.UaBase.Variant.ToExtensionObject ( )

Returns the value as an ExtensionObject.

Returns
An ExtensionObject.
ExtensionObject [] UnifiedAutomation.UaBase.Variant.ToExtensionObjectArray ( )

Returns the value as an array of ExtentionObjects.

Returns
An array of ExtentionObjects.
float UnifiedAutomation.UaBase.Variant.ToFloat ( )

Returns the value as a Float.

Returns
A Float.
float [] UnifiedAutomation.UaBase.Variant.ToFloatArray ( )

Returns the value as an array of Floats.

Returns
An array of Floats.
Uuid UnifiedAutomation.UaBase.Variant.ToGuid ( )

Returns the value as a Guid.

Returns
A Guid.
Uuid [] UnifiedAutomation.UaBase.Variant.ToGuidArray ( )

Returns the value as an array of Guids.

Returns
An array of Guids.
short UnifiedAutomation.UaBase.Variant.ToInt16 ( )

Returns the value as an Int16.

Returns
An Int16.
short [] UnifiedAutomation.UaBase.Variant.ToInt16Array ( )

Returns the value as an array of Int16s.

Returns
An array of Int16s.
int UnifiedAutomation.UaBase.Variant.ToInt32 ( )

Returns the value as an Int32.

Returns
An Int32.
int [] UnifiedAutomation.UaBase.Variant.ToInt32Array ( )

Returns the value as an array of Int32s.

Returns
An array of Int32s.
long UnifiedAutomation.UaBase.Variant.ToInt64 ( )

Returns the value as an Int64.

Returns
An Int64.
long [] UnifiedAutomation.UaBase.Variant.ToInt64Array ( )

Returns the value as an array of Int64s.

Returns
An array of Int64s.
LocalizedText UnifiedAutomation.UaBase.Variant.ToLocalizedText ( )

Returns the value as a LocalizedText.

Returns
A LocalizedText.
LocalizedText [] UnifiedAutomation.UaBase.Variant.ToLocalizedTextArray ( )

Returns the value as an array of LocalizedTexts.

Returns
An array of LocalizedTexts.
NodeId UnifiedAutomation.UaBase.Variant.ToNodeId ( )

Returns the value as a NodeId.

Returns
A NodeId.
NodeId [] UnifiedAutomation.UaBase.Variant.ToNodeIdArray ( )

Returns the value as an array of NodeIds.

Returns
An array of NodeIds.
QualifiedName UnifiedAutomation.UaBase.Variant.ToQualifiedName ( )

Returns the value as a QualifiedName.

Returns
A QualifiedName.
QualifiedName [] UnifiedAutomation.UaBase.Variant.ToQualifiedNameArray ( )

Returns the value as an array of QualifiedNames.

Returns
An array of QualifiedNames.
sbyte UnifiedAutomation.UaBase.Variant.ToSByte ( )

Returns the value as a SByte.

Returns
An SByte.
sbyte [] UnifiedAutomation.UaBase.Variant.ToSByteArray ( )

Returns the value as an array of SBytes.

Returns
An array of SBytes.
StatusCode UnifiedAutomation.UaBase.Variant.ToStatusCode ( )

Returns the value as a StatusCode.

Returns
A StatusCode.
StatusCode [] UnifiedAutomation.UaBase.Variant.ToStatusCodeArray ( )

Returns the value as an array of StatusCodes.

Returns
An array of StatusCodes.
string UnifiedAutomation.UaBase.Variant.ToString ( string  format,
IFormatProvider  formatProvider 
)

Formats the object as a string.

override string UnifiedAutomation.UaBase.Variant.ToString ( )

Returns the value as a String.

Returns
A String.
string [] UnifiedAutomation.UaBase.Variant.ToStringArray ( )

Returns the value as an array of Strings.

Returns
An array of Strings.
ushort UnifiedAutomation.UaBase.Variant.ToUInt16 ( )

Returns the value as a UInt16.

Returns
A UInt16.
ushort [] UnifiedAutomation.UaBase.Variant.ToUInt16Array ( )

Returns the value as an array of UInt16s.

Returns
An array of UInt16s.
uint UnifiedAutomation.UaBase.Variant.ToUInt32 ( )

Returns the value as a UInt32.

Returns
A UInt32.
uint [] UnifiedAutomation.UaBase.Variant.ToUInt32Array ( )

Returns the value as an array of UInt32s.

Returns
An array of UInt32s.
ulong UnifiedAutomation.UaBase.Variant.ToUInt64 ( )

Returns the value as a UInt64.

Returns
A UInt64.
ulong [] UnifiedAutomation.UaBase.Variant.ToUInt64Array ( )

Returns the value as an array of UInt64s.

Returns
An array of UInt64s.
Variant [] UnifiedAutomation.UaBase.Variant.ToVariantArray ( )

Returns the value as an array of Variants.

Returns
An array of Variants.
XmlString UnifiedAutomation.UaBase.Variant.ToXmlElement ( )

Returns the value as an XmlElement.

Returns
An XmlElement.
XmlString [] UnifiedAutomation.UaBase.Variant.ToXmlElementArray ( )

Returns the value as an array of XmlElements.

Returns
An array of XmlElements.

Member Data Documentation

readonly Variant UnifiedAutomation.UaBase.Variant.Null = new Variant(null, null)
static

A constant representing a Null value.

Property Documentation

int UnifiedAutomation.UaBase.Variant.ArrayLength
get

Gets the total number of elements in the array (-1 if not an array).

BuiltInType UnifiedAutomation.UaBase.Variant.DataType
get

Gets the data type for the value.

The data type for the value.

int [] UnifiedAutomation.UaBase.Variant.Dimensions
get

Gets the dimensions of the array (null if not an array).

bool UnifiedAutomation.UaBase.Variant.IsArray
get

Gets a value indicating whether the value is an array with 1 or more dimensions.

true if the value is an array; otherwise, false.

bool UnifiedAutomation.UaBase.Variant.IsMatrix
get

Gets a value indicating whether the value is a matrix (an array with 2 or more dimensions).

true if the value is a matrix; otherwise, false.

bool UnifiedAutomation.UaBase.Variant.IsNull
get

Gets a value indicating whether the value is null.

true if the value is null; otherwise, false.

TypeInfo UnifiedAutomation.UaBase.Variant.TypeInfo
get

Gets the type info.

object UnifiedAutomation.UaBase.Variant.Value
get

Gets the value.

int UnifiedAutomation.UaBase.Variant.ValueRank
get

Gets the value rank.


The documentation for this struct was generated from the following file: