Reference
OpcStructField Class
Represents a field of a structure defined using OpcStruct.
Reference
OpcStructField Class
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcStructField Members
Represents a field of a structure defined using OpcStruct.
Syntax
csharp
public class OpcStructFieldvbnet
Public Class OpcStructFieldInheritance
Object → OpcStructField
Derived types
Remarks
The methods AsArray and AsOptional change the field and return the field itself, so that they can be chained.
Constructors
| Name | Description |
|---|---|
| OpcStructField | Initializes a new instance of the OpcStructField class using the unique name and fieldTypeId of the structure field to define. |
Properties
| Name | Description |
|---|---|
| ArrayRank | Gets the number of dimensions of the field if it is an array. |
| Description | Gets description of the structure field which defines the purpose of the field. |
| FieldTypeId | Gets the identifier of the data type of the value of the field. |
| IsArray | Gets a value indicating whether the field is an array. |
| IsOptional | Gets a value indicating whether the field is optional. |
| Length | Gets the length of the field if it is an array. |
| Name | Gets the name of the structure field which unique identifies the field in the structure. |
| Switch | Gets the switch which controls the existence of the field if it is optional. |
Methods
| Name | Description |
|---|---|
| AsArray | Declares the field as a one-dimensional array with a variable length. |
| AsOptional | Declares the field as optional. |
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

