Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcVariableTypeInfo type exposes the following members.
Gets the length for each dimension of an array value of the variable type represented.
C#
public abstract uint[] ArrayDimensions { get; }
Property Value
UInt32[]
A null reference (Nothing in Visual Basic) in case there the value of the variable type represented is a scalar value; otherwise an UInt32 array there each entry indicates a single dimension while the value of the entry defines the length of that dimension.
Gets the total number of elements in all the dimensions of the array value of the variable type represented.
C#
public long ArrayLength { get; }
Property Value
The total number of elements in all the dimensions of the array value of the variable type represented; zero if there are no elements in the array.
Gets the rank (number of dimensions) of the array value of the variable type represented. For example, a one-dimensional array returns 1, a two-dimensional array returns 2, and so on.
C#
public int ArrayRank { get; }
Property Value
The rank (number of dimensions) of the array value of the variable type represented.
Gets the NodeCategoryOpcAttribute which identifies the kind of node and is therefore used to classify the node regarding its use and purpose.
C#
public override sealed OpcNodeCategory Category { get; }
Property Value
The OpcVariableTypeInfo always provides the VariableType.
Gets a value indicating whether the value of the variable represented is an array.
C#
public bool IsArray { get; }
Property Value
The value true if the value of the variable represented is an array; otherwise the false.
Retrieves the value of the attribute
specified.
C#
public override object AttributeValue(OpcAttribute attribute)
Parameters
attribute
OpcAttribute
One of the members defined by the OpcAttribute enumeration which identifies the attribute its value is queried.
Returns
The value of the attribute
specified or a null reference (Nothing in Visual Basic) in case there the value of the attribute is a null reference or it is not supported by the current OpcVariableTypeInfo.
Gets a 32-bit integer that represents the number of elements in the specified dimension of the array value of the variable type.
C#
public long GetArrayLength(int dimension)
Parameters
dimension
Int32
A zero-based dimension of the array value whose length needs to be determined.
Returns
A 32-bit integer that represents the number of elements in the specified dimension of the array value.
Exceptions
The dimension
is less than zero or equals to or greater than ArrayRank.
The value of the variable type represented is not an array (see IsArray).
Gets the index of the first element of the specified dimension in the array value of the variable type.
C#
public long GetArrayLowerBound(int dimension)
Parameters
dimension
Int32
A zero-based dimension of the array value whose starting index needs to be determined.
Returns
The index of the first element of the specified dimension in the array value.
Exceptions
The dimension
is less than zero or equals to or greater than ArrayRank.
The value of the variable type represented is not an array (see IsArray).
Gets the index of the last element of the specified dimension in the array value of the variable type.
C#
public long GetArrayUpperBound(int dimension)
Parameters
dimension
Int32
A zero-based dimension of the array value whose upper bound needs to be determined.
Returns
The index of the last element of the specified dimension in the array value, or -1 if the specified dimension is empty.
Exceptions
The dimension
is less than zero or equals to or greater than ArrayRank.
The value of the variable type represented is not an array (see IsArray).