Skip to content

Reference

OpcDataField Members

Represents a data field declared by the structured data type of a specific OpcDataObject instance.

Reference

OpcDataField Members ​

Type
OpcDataField
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Properties ​

Exists ​

Gets a value indicating whether the Value of the field is part of the data object this field belongs to.

csharp
public bool Exists { get; }
vbnet
Public ReadOnly Property Exists As Boolean

Property value

Boolean

The value true if the Value of this field is part of the data object this field belongs to; otherwise the value false.

HasValue ​

Gets a value indicating whether the Value property has been set.

csharp
public bool HasValue { get; }
vbnet
Public ReadOnly Property HasValue As Boolean

Property value

Boolean

The value true if the Value property has been seen; otherwise the value false.

IsOptional ​

Gets a value indicating whether the current field might not necessarily exist in the data object this field belongs to.

csharp
public bool IsOptional { get; }
vbnet
Public ReadOnly Property IsOptional As Boolean

Property value

Boolean

The value true if the field might not always exists; otherwise the value false.

Length ​

Gets the length of the field expressed either explicit or implicit using a different OpcDataField.

csharp
public long Length { get; }
vbnet
Public ReadOnly Property Length As Long

Property value

Int64

The total number of elements in the Value of the field or -1 if this field neither uses an explicit nor implicit length.

LengthField ​

Gets the field which explictly controls the Length of the Value of this field.

csharp
public OpcDataField LengthField { get; }
vbnet
Public ReadOnly Property LengthField As OpcDataField

Property value

OpcDataField

An instance of the OpcDataField in the data object (this field belongs to) which controls the length of the Value of the current field.

Name ​

Gets the name of the current OpcDataField.

csharp
public string Name { get; }
vbnet
Public ReadOnly Property Name As String

Property value

String

A string containing the name of this field.

SwitchField ​

Gets the field which explictly controls the existence of the Value of this field in the data object this field belongs to.

csharp
public OpcDataField SwitchField { get; }
vbnet
Public ReadOnly Property SwitchField As OpcDataField

Property value

OpcDataField

An instance of the OpcDataField in the data object (this field belongs to) which controls the existence of the Value of the current field.

Value ​

Gets or sets the value associated with the current field.

csharp
public object Value { get; set; }
vbnet
Public Property Value As Object

Property value

Object

The value associated with the current field or a null reference (Nothing in Visual Basic) if there is no value associated with the current field in the data object the field belongs to.

ValueType ​

Gets the Type of Value the current field supports.

csharp
public Type ValueType { get; }
vbnet
Public ReadOnly Property ValueType As Type

Property value

Type

The Type of Value supported.

Methods ​

ToString ​

override

Returns a string representing the Name, ValueType and Value of the current OpcDataField.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

A string representing the Name,the ValueType and Value of the current OpcDataField.

Overrides

ToString()