Skip to content

Reference

OpcStructField Class

Represents a field of a structure defined using OpcStruct.

Reference

OpcStructField Class ​

since v2.53

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 OpcStructField
vbnet
Public Class OpcStructField

Inheritance ​

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 ​

NameDescription
OpcStructField2 overloadsInitializes a new instance of the OpcStructField class using the unique name and fieldTypeId of the structure field to define.

Properties ​

NameDescription
ArrayRankGets the number of dimensions of the field if it is an array.
DescriptionGets description of the structure field which defines the purpose of the field.
FieldTypeIdGets the identifier of the data type of the value of the field.
IsArrayGets a value indicating whether the field is an array.
IsOptionalGets a value indicating whether the field is optional.
LengthGets the length of the field if it is an array.
NameGets the name of the structure field which unique identifies the field in the structure.
SwitchGets the switch which controls the existence of the field if it is optional.

Methods ​

NameDescription
AsArray5 overloadsDeclares the field as a one-dimensional array with a variable length.
AsOptional2 overloadsDeclares the field as optional.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.53–v2.59