OpcMemberLength Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcMemberLength type exposes the following members.

OpcMemberLength(Int64)

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.

C#

public OpcMemberLength(long value)


Parameters

value Int64

The total number of bytes or the number of instances.


Exceptions

ArgumentOutOfRangeException

The value is less than 0 or greater than MaxValue.

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.

C#

public OpcMemberLength(string name)


Parameters

name String

The 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

ArgumentException

The name is equals Empty.

ArgumentNullException

The name is a null reference (Nothing in Visual Basic).

Name

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

C#

public string Name { get; }


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.

C#

public long Value { get; }


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.

ToString()

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

C#

public override string ToString()


Returns

String

A String representing the current OpcMemberLength.