Reference
OpcVariableTypeInfo Members
Represents type declarations used for variable node types.
Reference
OpcVariableTypeInfo Members
- Type
- OpcVariableTypeInfo
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from OpcNodeTypeInfo.
Properties
ArrayDimensions
Gets the length for each dimension of an array value of the variable type represented.
public abstract uint[] ArrayDimensions { get; }Public MustOverride ReadOnly Property ArrayDimensions As UInteger()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 uint array there each entry indicates a single dimension while the value of the entry defines the length of that dimension.
ArrayLength
Gets the total number of elements in all the dimensions of the array value of the variable type represented.
public long ArrayLength { get; }Public ReadOnly Property ArrayLength As LongProperty 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.
ArrayRank
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.
public int ArrayRank { get; }Public ReadOnly Property ArrayRank As IntegerProperty value
The rank (number of dimensions) of the array value of the variable type represented.
Category
Gets the NodeCategory attribute which identifies the kind of node and is therefore used to classify the node regarding its use and purpose.
public override sealed OpcNodeCategory Category { get; }Public NotOverridable Overrides ReadOnly Property Category As OpcNodeCategoryProperty value
The OpcVariableTypeInfo always provides the VariableType.
Overrides
DataType
Gets the built-in data type of the value of the variable type represented.
public OpcDataType DataType { get; }Public ReadOnly Property DataType As OpcDataTypeProperty value
The member of OpcDataType which represents the DataTypeId (see GetDataType).
DataTypeId
Gets the identifier of the data type of the value of the variable type represented.
public abstract OpcNodeId DataTypeId { get; }Public MustOverride ReadOnly Property DataTypeId As OpcNodeIdProperty value
The OpcNodeId of the data type node which defines the type of data of the value of the variable type.
IsArray
Gets a value indicating whether the value of the variable represented is an array.
public bool IsArray { get; }Public ReadOnly Property IsArray As BooleanProperty value
The value true if the value of the variable represented is an array; otherwise the false.
ValueRank
Gets the value rank of the value of the variable type represented.
public abstract int ValueRank { get; }Public MustOverride ReadOnly Property ValueRank As IntegerProperty value
The value of the ValueRank attribute which indicates whether the value is a scalar or an array and the number of its dimensions, as defined by OPC UA.
Methods
AttributeValue
Retrieves the value of the attribute specified.
public override object AttributeValue(OpcAttribute attribute)Public Overrides Function AttributeValue(attribute As OpcAttribute) As ObjectParameters
| Name | Type | Description |
|---|---|---|
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.
Overrides
GetArrayLength
Gets a 32-bit integer that represents the number of elements in the specified dimension of the array value of the variable type.
public long GetArrayLength(int dimension)Public Function GetArrayLength(dimension As Integer) As LongParameters
| Name | Type | Description |
|---|---|---|
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
| Exception | Condition |
|---|---|
| Argument | The dimension is less than zero or equals to or greater than ArrayRank. |
| Invalid | The value of the variable type represented is not an array ( |
GetArrayLowerBound
Gets the index of the first element of the specified dimension in the array value of the variable type.
public long GetArrayLowerBound(int dimension)Public Function GetArrayLowerBound(dimension As Integer) As LongParameters
| Name | Type | Description |
|---|---|---|
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
| Exception | Condition |
|---|---|
| Argument | The dimension is less than zero or equals to or greater than ArrayRank. |
| Invalid | The value of the variable type represented is not an array ( |
GetArrayUpperBound
Gets the index of the last element of the specified dimension in the array value of the variable type.
public long GetArrayUpperBound(int dimension)Public Function GetArrayUpperBound(dimension As Integer) As LongParameters
| Name | Type | Description |
|---|---|---|
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
| Exception | Condition |
|---|---|
| Argument | The dimension is less than zero or equals to or greater than ArrayRank. |
| Invalid | The value of the variable type represented is not an array ( |

