Reference
OpcValueRange Members
Defines the range for a value.
Reference
OpcValueRange Members
- Type
- OpcValueRange
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Constructors
OpcValueRange
| Overload | Description |
|---|---|
| OpcValueRange() | Initializes a new instance of the OpcValueRange class. |
| OpcValueRange( | Initializes a new instance of the OpcValueRange class using the high limit specified with the lower limit equals to zero. |
| OpcValueRange( | Initializes a new instance of the OpcValueRange class using the high and low limit specified. |
OpcValueRange()
Initializes a new instance of the OpcValueRange class.
public OpcValueRange()Public Sub New()Remarks
An instance created using this constructor results into a range with the lower and upper limit equals to zero.
OpcValueRange(double)
Initializes a new instance of the OpcValueRange class using the high limit specified with the lower limit equals to zero.
public OpcValueRange(double high)Public Sub New(high As Double)Parameters
| Name | Type | Description |
|---|---|---|
high | Double | The upper limit of a value. |
Remarks
If high is less then zero, the High limit will become zero and the Low limit will define the value specified by high.
OpcValueRange(double, double)
Initializes a new instance of the OpcValueRange class using the high and low limit specified.
public OpcValueRange(double high, double low)Public Sub New(high As Double, low As Double)Parameters
| Name | Type | Description |
|---|---|---|
high | Double | The upper limit of a value. |
low | Double | The lower limit of a value. |
Remarks
If high is less than low then High will have the value of low and Low will have the value of high.
Properties
High
Gets or sets the highest value in the range.
public double High { get; set; }Public Property High As DoubleProperty value
The highest value in the range representing the upper limit.
Low
Gets or sets the lowest value in the range.
public double Low { get; set; }Public Property Low As DoubleProperty value
The lowest value in the range representing the lower limit.
Magnitude
Gets the mathematical distance between Low and High.
public double Magnitude { get; }Public ReadOnly Property Magnitude As DoubleProperty value
The mathematical distance determined by the absolute difference between Low and High.
Methods
Of
| Overload | Description |
|---|---|
| Of< | Determines the according OpcValueRange of the type specified by T. |
| Of( | Determines the according OpcValueRange of the type specified by type. |
| Of( | Determines the according OpcValueRange of the type specified by type. |
| Of( | Determines the according OpcValueRange of the type identified by the specified typeId. |
Of<T>()
Determines the according OpcValueRange of the type specified by T.
public static OpcValueRange Of<T>()Public Shared Function [Of](Of T)() As OpcValueRangeType parameters
| Name | Description |
|---|---|
T | The type which is reflected to look up a 'MinValue' and a 'MaxValue' field to determine the Low and High values of the OpcValueRange to determine. |
Returns
The OpcValueRange with the according 'MinValue' for Low and the 'MaxValue' for High or a null reference (Nothing in Visual Basic) if the type specified does not provide a 'MinValue' and 'MaxValue' field.
Remarks
To determine the according OpcValueRange 'MinValue' and 'MaxValue' are required as static fields which offer IConvertible values.
Of(Type)
Determines the according OpcValueRange of the type specified by type.
public static OpcValueRange Of(Type type)Public Shared Function [Of](type As Type) As OpcValueRangeParameters
| Name | Type | Description |
|---|---|---|
type | Type | The Type which is reflected to look up a 'MinValue' and a 'MaxValue' field to determine the Low and High values of the OpcValueRange to determine. |
Returns
The OpcValueRange with the according 'MinValue' for Low and the 'MaxValue' for High or a null reference (Nothing in Visual Basic) if the type specified does not provide a 'MinValue' and 'MaxValue' field or if type is a null reference (Nothing in Visual Basic).
Remarks
To determine the according OpcValueRange 'MinValue' and 'MaxValue' are required as static fields which offer IConvertible values.
Of(OpcDataType)
Determines the according OpcValueRange of the type specified by type.
public static OpcValueRange Of(OpcDataType type)Public Shared Function [Of](type As OpcDataType) As OpcValueRangeParameters
| Name | Type | Description |
|---|---|---|
type | OpcDataType | One of the members defined by the OpcDataType enumeration its underlying Type is reflected to look up a 'MinValue' and a 'MaxValue' property to determine the Low and High values of the OpcValueRange to determine. |
Returns
The OpcValueRange with the according 'MinValue' for Low and the 'MaxValue' for High or a null reference (Nothing in Visual Basic) if the according Type of the type specified does not provide a 'MinValue' and 'MaxValue' field.
Remarks
To determine the according OpcValueRange 'MinValue' and 'MaxValue' are required as static fields which offer IConvertible values.
Of(OpcNodeId)
Determines the according OpcValueRange of the type identified by the specified typeId.
public static OpcValueRange Of(OpcNodeId typeId)Public Shared Function [Of](typeId As OpcNodeId) As OpcValueRangeParameters
| Name | Type | Description |
|---|---|---|
typeId | OpcNodeId | The OpcNodeId which identifies the OpcDataTypeInfo its underlying Type is reflected to look up a 'MinValue' and a 'MaxValue' field to determine the Low and High values of the OpcValueRange to determine. |
Returns
The OpcValueRange with the according 'MinValue' for Low and the 'MaxValue' for High or a null reference (Nothing in Visual Basic) if the according Type identified by the typeId specified does not provide a 'MinValue' and 'MaxValue' field or typeId is a null reference (Nothing in Visual Basic) or is a null identifier (see IsNull).
Remarks
To determine the according OpcValueRange 'MinValue' and 'MaxValue' are required as static fields which offer IConvertible values.
ToString
Returns a string that represents the current OpcValueRange.
public override string ToString()Public Overrides Function ToString() As StringReturns
A string that represents the current OpcValueRange including the used Low and High limits of the range represented.
Overrides
Operators
Explicit
Converts a OpcValueRange to an Range object.
public static explicit operator Range(OpcValueRange value)Public Shared Narrowing Operator CType(value As OpcValueRange) As RangeParameters
| Name | Type | Description |
|---|---|---|
value | OpcValueRange | A OpcValueRange that represents the engineering unit information. |
Returns
Range
An instance of the Range class initialized from the value.
Implicit
Converts a Range to an OpcValueRange object.
public static implicit operator OpcValueRange(Range value)Public Shared Widening Operator CType(value As Range) As OpcValueRangeParameters
| Name | Type | Description |
|---|---|---|
value | Range | A Range that represents the engineering unit information. |
Returns
An instance of the OpcValueRange class initialized from the value.

