Reference
OpcEnumValue Members
Represent a human-readable representation of an enumeration.
Reference
OpcEnumValue Members
- Type
- OpcEnumValue
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Constructors
OpcEnumValue
| Overload | Description |
|---|---|
| OpcEnumValue( | Initializes a new instance of the OpcEnumValue class using the name and value provided. |
| OpcEnumValue( | Initializes a new instance of the OpcEnumValue class using the name, value and displayName provided. |
| OpcEnumValue( | Initializes a new instance of the OpcEnumValue class using the name, value, displayName and description provided. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The name is an empty string. |
| Argument | The name is a null reference ( |
OpcEnumValue(string, long)
Initializes a new instance of the OpcEnumValue class using the name and value provided.
public OpcEnumValue(string name, long value)Public Sub New(name As String, value As Long)Parameters
| Name | Type | Description |
|---|---|---|
name | String | The value used for the Name and DisplayName properties. |
value | Int64 | The value of the enumeration used for the Value property. |
OpcEnumValue(string, long, OpcText)
Initializes a new instance of the OpcEnumValue class using the name, value and displayName provided.
public OpcEnumValue(string name, long value, OpcText displayName)Public Sub New(name As String, value As Long, displayName As OpcText)Parameters
| Name | Type | Description |
|---|---|---|
name | String | The value used for the Name property. |
value | Int64 | The value of the enumeration used for the Value property. |
displayName | OpcText | The human-readable representation of the value of the enumeration. |
OpcEnumValue(string, long, OpcText, OpcText)
Initializes a new instance of the OpcEnumValue class using the name, value, displayName and description provided.
public OpcEnumValue(
string name,
long value,
OpcText displayName,
OpcText description)Public Sub New(
name As String,
value As Long,
displayName As OpcText,
description As OpcText)Parameters
| Name | Type | Description |
|---|---|---|
name | String | The value used for the Name property. |
value | Int64 | The value of the enumeration used for the Value property. |
displayName | OpcText | The human-readable representation of the value of the enumeration. |
description | OpcText | A localized description of the enumeration value. |
Remarks
In case description is a null reference (Nothing in Visual Basic), the value of Null is used instead.
Properties
Description
Gets a localized description of the enumeration value.
public OpcText Description { get; }Public ReadOnly Property Description As OpcTextProperty value
An instance of the OpcText class associated with the description.
Remarks
This field contains an empty string if no description is available.
DisplayName
Gets a human-readable representation of the value of the enumeration.
public OpcText DisplayName { get; }Public ReadOnly Property DisplayName As OpcTextProperty value
An instance of the OpcText associated with the human-readable representation.
Name
Gets an internal name for the value of the enumeration.
public string Name { get; }Public ReadOnly Property Name As StringProperty value
The string of the internal name.
Value
Gets the value representation of an enumeration.
public long Value { get; }Public ReadOnly Property Value As LongProperty value
The long value representation.
Methods
CompareTo
| Overload | Description |
|---|---|
| CompareTo( | Compares the current OpcEnumValue with the other. |
| CompareTo( | Compares the current OpcEnumValue with another OpcEnumValue. |
CompareTo(object)
Compares the current OpcEnumValue with the other.
public virtual int CompareTo(object other)Public Overridable Function CompareTo(other As Object) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | Object | The OpcEnumValue to compare with this OpcEnumValue. |
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).
Implements
CompareTo(OpcEnumValue)
Compares the current OpcEnumValue with another OpcEnumValue.
public virtual int CompareTo(OpcEnumValue other)Public Overridable Function CompareTo(other As OpcEnumValue) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | OpcEnumValue | The OpcEnumValue to compare with this OpcEnumValue. |
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(T)).
Implements
Equals
| Overload | Description |
|---|---|
| Equals( | Determines whether the specified other is equal to this OpcEnumValue. |
| Equals( | Determines whether the specified other is equal to this OpcEnumValue. |
Equals(object)
Determines whether the specified other is equal to this OpcEnumValue.
public override bool Equals(object other)Public Overrides Function Equals(other As Object) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | Object | The OpcEnumValue to compare to the current OpcEnumValue. |
Returns
The value true if the specified OpcEnumValue is equal to the current OpcEnumValue; otherwise the value false.
Overrides
Equals(OpcEnumValue)
Determines whether the specified other is equal to this OpcEnumValue.
public virtual bool Equals(OpcEnumValue other)Public Overridable Function Equals(other As OpcEnumValue) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | OpcEnumValue | The OpcEnumValue to compare to the current OpcEnumValue. |
Returns
The value true if the specified OpcEnumValue is equal to the current OpcEnumValue; otherwise the value false.
Implements
GetHashCode
Retrieves a hash code for this OpcEnumValue.
public override int GetHashCode()Public Overrides Function GetHashCode() As IntegerReturns
An int that contains the hash code for the OpcEnumValue.
Overrides
ToString
Converts the value of this instance to its equivalent string representation.
public override string ToString()Public Overrides Function ToString() As StringReturns
The string representation of the value of this instance.
Overrides
Operators
Equality
Returns a value indicating whether two instance of OpcEnumValue are equal.
public static bool operator ==(OpcEnumValue left, OpcEnumValue right)Public Shared Operator =(left As OpcEnumValue, right As OpcEnumValue) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcEnumValue | The first OpcEnumValue to compare. |
right | OpcEnumValue | The second OpcEnumValue to compare. |
Returns
The value true if left and right are equal; otherwise the value false.
GreaterThan
Determines whether the first specified OpcEnumValue object is greater than the second specified OpcEnumValue object.
public static bool operator >(OpcEnumValue left, OpcEnumValue right)Public Shared Operator >(left As OpcEnumValue, right As OpcEnumValue) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcEnumValue | The first OpcEnumValue object. |
right | OpcEnumValue | The second OpcEnumValue object. |
Returns
The value true if left is greater than right; otherwise, false.
GreaterThanOrEqual
Determines whether the first specified OpcEnumValue object is greater than or equal to the second specified OpcEnumValue object.
public static bool operator >=(OpcEnumValue left, OpcEnumValue right)Public Shared Operator >=(
left As OpcEnumValue,
right As OpcEnumValue) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcEnumValue | The first OpcEnumValue object. |
right | OpcEnumValue | The second OpcEnumValue object. |
Returns
The value true if left is greater than or equal to right; otherwise, false.
Inequality
Returns a value indicating whether two instances of OpcEnumValue are not equal.
public static bool operator !=(OpcEnumValue left, OpcEnumValue right)Public Shared Operator <>(
left As OpcEnumValue,
right As OpcEnumValue) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcEnumValue | The first OpcEnumValue to compare. |
right | OpcEnumValue | The second OpcEnumValue to compare. |
Returns
The value true if left and right are not equal; otherwise the value false.
LessThan
Determines whether the first specified OpcEnumValue object is less than the second specified OpcEnumValue object.
public static bool operator <(OpcEnumValue left, OpcEnumValue right)Public Shared Operator <(left As OpcEnumValue, right As OpcEnumValue) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcEnumValue | The first OpcEnumValue object. |
right | OpcEnumValue | The second OpcEnumValue object. |
Returns
The value true if left is less than right; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |
LessThanOrEqual
Determines whether the first specified OpcEnumValue object is less than or equal to the second OpcEnumValue object.
public static bool operator <=(OpcEnumValue left, OpcEnumValue right)Public Shared Operator <=(
left As OpcEnumValue,
right As OpcEnumValue) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcEnumValue | The first OpcEnumValue object. |
right | OpcEnumValue | The second OpcEnumValue object. |
Returns
The value true if left is less than or equal to right; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The left is a null reference ( |

