Skip to content

Reference

OpcMemberLength Members

Declares the total number of bytes or the number of instances of the type referenced by a member either direct or indirect by referencing a different member its value defines the length of the member.

Reference

OpcMemberLength Members ​

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

Constructors ​

OpcMemberLength ​

2 overloads

OverloadDescription
OpcMemberLength(string)Initializes a new instance of the OpcMemberLength class which refers to the length member using its name specified.
OpcMemberLength(long)Initializes a new instance of the OpcMemberLength class which defines the total number of bytes or the number of instances of the type referenced by a member using the value specified.

OpcMemberLength(string) ​

Initializes a new instance of the OpcMemberLength class which refers to the length member using its name specified. Using this constructor results in a OpcMemberLength which provides the length indirect using a different member using its name.

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

Parameters

NameTypeDescription
nameStringThe name of the length member its value indicates the number of bytes or the number of instances of the type referenced by the member.

Exceptions

ExceptionCondition
ArgumentExceptionThe name is equals Empty.
ArgumentNullExceptionThe name is a null reference (Nothing in Visual Basic).

OpcMemberLength(long) ​

Initializes a new instance of the OpcMemberLength class which defines the total number of bytes or the number of instances of the type referenced by a member using the value specified. Using this constructor results in a OpcMemberLength which provides the length direct using the value as the length.

csharp
public OpcMemberLength(long value)
vbnet
Public Sub New(value As Long)

Parameters

NameTypeDescription
valueInt64The total number of bytes or the number of instances.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionThe value is less than 0 or greater than MaxValue.

Properties ​

Name ​

Gets the name of the length member its value indicates the number of bytes or the number of instances.

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

Property value

String

The string which identifies the member its value indicates the length to use.

Value ​

Gets the total number of bytes or the number of instances.

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

Property value

Int64

The total number of bytes or the number of instances or -1 if the length is to be determined using the length member referenced by Name.

Methods ​

ToString ​

override

Returns a string representing the information used by the current OpcMemberLength.

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

Returns

String

A string representing the current OpcMemberLength.

Overrides

ToString()