Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The IOpcDataTypeInfo interface defines the following members.
Gets the type from which the current IOpcDataTypeInfo directly inherits.
C#
IOpcDataTypeInfo BaseType { get; }
Property Value
An instance of the IOpcDataTypeInfo which represents the type from which the current IOpcDataTypeInfo directly inherits or a null reference (Nothing in Visual Basic) if the type does not inherit from a different IOpcDataTypeInfo.
Gets the information used to identify the type of encoding used for the data of the type represented.
C#
OpcEncoding Encoding { get; }
Property Value
An instance of the OpcEncoding class which represents the information used to encode data of the type or a null reference (Nothing in Visual Basic) if is no encoding information associated with the type.
Gets the characteristics used to encode the existence of optional fields.
C#
OpcEncodingMask EncodingMask { get; }
Property Value
An instance of the OpcEncodingMask class.
Gets information of all encodings supported by the type represented.
C#
OpcEncoding[] Encodings { get; }
Property Value
An array of OpcEncoding instances supported by the type.
Gets a value indicating whether the type is an array.
C#
bool IsArray { get; }
Property Value
The value true if the current type is an array; otherwise the value false.
Gets a value indicating whether the current IOpcDataTypeInfo represents an enumeration.
C#
bool IsEnum { get; }
Property Value
The value true if the current IOpcDataTypeInfo represents an enumeration; otherwise the value false.
Remarks
The OPC UA handles enumerations as a numeric value that has a fixed set of valid values. The encoded value described by an enumeration is always an unsigned integer (see UInt32) with a fixed size.
Gets a value indicating whether the current IOpcDataTypeInfo describes a primitive fixed size type.
C#
bool IsOpaque { get; }
Property Value
The value true if the current IOpcDataTypeInfo represents an opaque type; otherwise the value false.
Gets a value indicating whether the IOpcDataTypeInfo is one of the primitive types.
C#
bool IsPrimitive { get; }
Property Value
The value true if the IOpcDataTypeInfo is one of the primitive types; otherwise the value false.
Gets a value indicating whether the IOpcDataTypeInfo is a structured type; that is not a value type.
C#
bool IsStruct { get; }
Property Value
The value true if the IOpcDataTypeInfo is a structured type; otherwise the value false.
Remarks
The OPC UA handles structures as a sequence of values. Each value in the sequence is called a field. A field may specify that zero, one or multiple instances of the type appear within the sequence described by the structure. Some fields have lengths that are not multiples of 8 bits. Several of these fields may appear in a sequence in a structure, however, the total number of bits used in the sequence shall be aligned on a byte boundary. A sequence of fields which do not line up on byte boundaries are specified from the least significant bit to the most significant bit. Sequences which are longer than one byte overflow from the most significant bit to the first byte into the least significant bit of the next byte.
Gets a value indicating whether the current IOpcDataTypeInfo represents one of the predefined built-in data types defined by the OPC UA.
C#
bool IsSystemType { get; }
Property Value
The value true if the current data type represents a OPC UA is a built-in type; otherwise the value false.
Gets a value which defines the non-localizable human-readable name of the type represented. A node which represents this IOpcDataTypeInfo uses the Name as its BrowseName.
C#
OpcName Name { get; }
Property Value
An instance of the OpcName class with the String used as the name of the type which does not unambiguously identify the IOpcDataTypeInfo.
Gets the size of the type represented as the number of bytes required.
C#
long? Size { get; }
Property Value
The size of the type as the number of bytes required; if this IOpcDataTypeInfo represents a type with a fixed size (see IsOpaque).
Gets the size of the type represented as the number of bits required.
C#
long? SizeInBits { get; }
Property Value
The size of the type as the number of bits required; if this IOpcDataTypeInfo represents a type with a fixed size (see IsOpaque).
Gets a value which identifies the type represented. A node which represents this IOpcDataTypeInfo uses the TypeId as its NodeId.
C#
OpcNodeId TypeId { get; }
Property Value
An instance of the OpcNodeId class used as the identifier of the type which unambiguously identifies the IOpcDataTypeInfo.
Gets the type which provides the implementation of the IOpcDataTypeInfo.
C#
Type UnderlyingType { get; }
Property Value
The Type which implements the type declared or a null reference (Nothing in Visual Basic) if there does not exist a declaration of the type described by this IOpcDataTypeInfo.
Gets the number of dimensions in an array.
C#
int GetArrayRank()
Returns
An integer that contains the number of dimensions in the current type.
Exceptions
The current type is not an array.
Returns the IOpcDataTypeInfo of the object encompassed or referred to by the current array.
C#
IOpcDataTypeInfo GetElementType()
Returns
The IOpcDataTypeInfo of the object encompassed or referred to by the current array or null if the current IOpcDataTypeInfo is not an array.
Searches for the field with the specified name
.
C#
IOpcDataFieldInfo GetField(string name)
Parameters
name
String
The String containing the name of the data field to get.
Returns
An instance of the IOpcDataFieldInfo representing the field with the specified name, if found; otherwise a null reference (Nothing in Visual Basic).
Exceptions
The name
is a null reference (Nothing in Visual Basic).
Remarks
The name
specified is compared using Ordinal.
Returns all the fields of the current IOpcDataTypeInfo.
C#
IOpcDataFieldInfo[] GetFields()
Returns
An array of IOpcDataFieldInfo objects representing all the fields defined for the current IOpcDataTypeInfo or an empty array of type IOpcDataFieldInfo if no fields are defined for the current IOpcDataTypeInfo.
Returns a IOpcDataTypeInfo object representing a one-dimensional array of the current type, with a lower bound of zero.
C#
IOpcDataTypeInfo MakeArrayType()
Returns
A IOpcDataTypeInfo object representing a one-dimensional array of the current type, with a lower bound of zero.
Returns a IOpcDataTypeInfo object representing an array of the current type, with the specified number of dimensions.
C#
IOpcDataTypeInfo MakeArrayType(int rank)
Parameters
rank
Int32
The number of dimensions for the array. This number must be less than or equal to 32.
Returns
An object representing an array of the current type, with the specified number of dimensions.
Exceptions
The rank
is not between 1 and 32 (inclusive).