Reference
OpcRange Struct
Represents a range used to identify a single element or a range of elements in a structure or an array using their zero-based indexes.
Reference
OpcRange Struct
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Members
- OpcRange Members
- Also in
- Opc.UaFx.Client
Represents a range used to identify a single element or a range of elements in a structure or an array using their zero-based indexes.
Syntax
csharp
[OpcDataType(291)]
public readonly struct OpcRangevbnet
<OpcDataType(291)>
Public Structure OpcRangeImplements
- IComparable
- IComparable<OpcRange>
- IEquatable<OpcRange>
Remarks
A single element can be identified using an OpcRange just with a Start value.
A range of elements can be identified using an OpcRange with a Start and End value.
A range of elements in a subsequent dimension can be identified using an OpcRange with a Next value.
Constructors
| Name | Description |
|---|---|
| OpcRange | Initializes a new instance of the OpcRange with the specified start index of a single element. |
Fields
| Name | Description |
|---|---|
| Empty | Stores the value used to identify an undefined OpcRange. |
Properties
| Name | Description |
|---|---|
| Dimensions | Gets the total number of dimensions identified by this and its subsequent OpcRange values ( |
| End | Gets the index of the last element in the range. |
| Length | Gets the total number of elements identified by this OpcRange. |
| Next | Gets the OpcRange for the next dimension within this OpcRange. |
| Start | Gets the index of the first element in the range. |
Methods
| Name | Description |
|---|---|
| CompareTo | Compares the current OpcRange with the other. |
| Equals | Determines whether the specified other is equal to this OpcRange. |
| GetHashCode | Retrieves a hash code for this OpcRange. |
| Of | Determines the OpcRange which applies to the dimension specified. |
| Parse | Converts the specified string to its OpcRange equivalent. |
| ToString | Converts the value of this instance to its equivalent string representation. |
| TryParse | Tries to convert the specified string to its OpcRange equivalent. |
Operators
| Name | Description |
|---|---|
| Equality | Returns a value indicating whether two values of OpcRange are equal. |
| Explicit | Converts a OpcRange to a string object. |
| GreaterThan | Determines whether the first specified OpcRange value is greater than the second specified OpcRange value. |
| Greater | Determines whether the first specified OpcRange value is greater than or equal to the second specified OpcRange value. |
| Implicit | Converts an int to a OpcRange value using the value as the Start of the OpcRange. |
| Inequality | Returns a value indicating whether two values of OpcRange are not equal. |
| LessThan | Determines whether the first specified OpcRange value is less than the second specified OpcRange value. |
| LessThanOrEqual | Determines whether the first specified OpcRange value is less than or equal to the second OpcRange value. |
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

