Skip to content

Reference

OpcEnumField Members

Represents a field of an enumeration defined using OpcEnum.

Reference

OpcEnumField Members ​

Type
OpcEnumField
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Constructors ​

OpcEnumField ​

3 overloads

OverloadDescription
OpcEnumField(string)Initializes a new instance of the OpcEnumField class using the unique name of the enumeration field to define.
OpcEnumField(string, long)Initializes a new instance of the OpcEnumField class using the unique name and value of the enumeration field to define.
OpcEnumField(string, long, string)Initializes a new instance of the OpcEnumField class using the unique name, value and description of the enumeration field to define.

OpcEnumField(string) ​

Initializes a new instance of the OpcEnumField class using the unique name of the enumeration field to define.

csharp
public OpcEnumField(string name)
vbnet
Public Sub New(name As String)

Parameters

NameTypeDescription
nameStringThe name of the enumeration field which unique identifies the field in the enumeration.

OpcEnumField(string, long) ​

Initializes a new instance of the OpcEnumField class using the unique name and value of the enumeration field to define.

csharp
public OpcEnumField(string name, long value)
vbnet
Public Sub New(name As String, value As Long)

Parameters

NameTypeDescription
nameStringThe name of the enumeration field which unique identifies the field in the enumeration.
valueInt64The value of the enumeration field.

OpcEnumField(string, long, string) ​

Initializes a new instance of the OpcEnumField class using the unique name, value and description of the enumeration field to define.

csharp
public OpcEnumField(string name, long value, string description)
vbnet
Public Sub New(name As String, value As Long, description As String)

Parameters

NameTypeDescription
nameStringThe name of the enumeration field which unique identifies the field in the enumeration.
valueInt64The value of the enumeration field.
descriptionStringThe description of the purpose of the enumeration field.

Properties ​

Description ​

Gets description of the enumeration field which defines the purpose of the field.

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

Property value

String

The description of the purpose of the enumeration field represented.

Name ​

Gets the name of the enumeration field which unique identifies the field in the enumeration.

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

Property value

String

The unique name of the enumeration field.

Value ​

Gets the value of the enumeration field.

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

Property value

Int64

The value of the enumeration field.