Skip to content

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 ​

since v2.24

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 OpcRange
vbnet
<OpcDataType(291)>
Public Structure OpcRange

Implements ​

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 ​

NameDescription
OpcRange4 overloadsInitializes a new instance of the OpcRange with the specified start index of a single element.

Fields ​

NameDescription
EmptystaticStores the value used to identify an undefined OpcRange.

Properties ​

NameDescription
DimensionsGets the total number of dimensions identified by this and its subsequent OpcRange values (see Next).
EndGets the index of the last element in the range.
LengthGets the total number of elements identified by this OpcRange.
NextGets the OpcRange for the next dimension within this OpcRange.
StartGets the index of the first element in the range.

Methods ​

NameDescription
CompareTo2 overloadsCompares the current OpcRange with the other.
Equals2 overloadsDetermines whether the specified other is equal to this OpcRange.
GetHashCodeoverrideRetrieves a hash code for this OpcRange.
OfDetermines the OpcRange which applies to the dimension specified.
ParsestaticConverts the specified string to its OpcRange equivalent.
ToStringoverrideConverts the value of this instance to its equivalent string representation.
TryParsestaticTries to convert the specified string to its OpcRange equivalent.

Operators ​

NameDescription
EqualitystaticReturns a value indicating whether two values of OpcRange are equal.
Explicitstatic · 2 overloadsConverts a OpcRange to a string object.
GreaterThanstaticDetermines whether the first specified OpcRange value is greater than the second specified OpcRange value.
GreaterThanOrEqualstaticDetermines whether the first specified OpcRange value is greater than or equal to the second specified OpcRange value.
Implicitstatic · 4 overloadsConverts an int to a OpcRange value using the value as the Start of the OpcRange.
InequalitystaticReturns a value indicating whether two values of OpcRange are not equal.
LessThanstaticDetermines whether the first specified OpcRange value is less than the second specified OpcRange value.
LessThanOrEqualstaticDetermines whether the first specified OpcRange value is less than or equal to the second OpcRange value.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.24–v2.59