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
| Overload | Description |
|---|---|
| OpcMemberLength( | Initializes a new instance of the OpcMemberLength class which refers to the length member using its name specified. |
| OpcMemberLength( | 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.
public OpcMemberLength(string name)Public Sub New(name As String)Parameters
| Name | Type | Description |
|---|---|---|
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
| Exception | Condition |
|---|---|
| Argument | The name is equals Empty. |
| Argument | The name is a null reference ( |
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.
public OpcMemberLength(long value)Public Sub New(value As Long)Parameters
| Name | Type | Description |
|---|---|---|
value | Int64 | The total number of bytes or the number of instances. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The 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.
public string Name { get; }Public ReadOnly Property Name As StringProperty value
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.
public long Value { get; }Public ReadOnly Property Value As LongProperty value
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
Returns a string representing the information used by the current OpcMemberLength.
public override string ToString()Public Overrides Function ToString() As StringReturns
A string representing the current OpcMemberLength.
Overrides

