Reference
OpcText Members
Represents a human readable string value optionally associated with a Culture and localization relevant information.
Reference
OpcText Members
- Type
- OpcText
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Constructors
OpcText
| Overload | Description |
|---|---|
| OpcText( | Initializes a new instance of the OpcText class using the value. |
| OpcText( | Initializes a new instance of the OpcText class using the value and the cultureName of the value. |
| OpcText( | Initializes a new instance of the OpcText class using the value, cultureName and key of the value. |
OpcText(string)
Initializes a new instance of the OpcText class using the value.
public OpcText(string value)Public Sub New(value As String)Parameters
| Name | Type | Description |
|---|---|---|
value | String | The value to represent. |
OpcText(string, string)
Initializes a new instance of the OpcText class using the value and the cultureName of the value.
public OpcText(string value, string cultureName)Public Sub New(value As String, cultureName As String)Parameters
| Name | Type | Description |
|---|---|---|
value | String | The value to represent. |
cultureName | String | The name of the culture used to localize the value. |
OpcText(string, string, string)
Initializes a new instance of the OpcText class using the value, cultureName and key of the value.
public OpcText(string value, string cultureName, string key)Public Sub New(value As String, cultureName As String, key As String)Parameters
| Name | Type | Description |
|---|---|---|
value | String | The value to represent. |
cultureName | String | The name of the culture used to localize the value. |
key | String | The key information associated with the value which can be used to look up alternative localizations. |
Properties
Culture
Gets the culture which is used to localize the Value.
public CultureInfo Culture { get; }Public ReadOnly Property Culture As CultureInfoProperty value
An instance of the CultureInfo if CultureName references to a known culture; otherwise the InvariantCulture.
CultureName
Gets the name of the culture used to localize the Value.
public string CultureName { get; }Public ReadOnly Property CultureName As StringProperty value
The Name of the culture used to localize the Value.
IsNull
Gets a value indicating whether the Value represented is a null reference (Nothing in Visual Basic).
public bool IsNull { get; }Public ReadOnly Property IsNull As BooleanProperty value
The value true if the Value is a null reference (Nothing in Visual Basic); otherwise the value false.
Key
Gets the key information associated with the OpcText which can be used to look up alternative localizations of the Value.
public string Key { get; }Public ReadOnly Property Key As StringProperty value
A key used to look up alternative localizations of the Value.
Null
Gets a value used to identify an undefined OpcText.
public static OpcText Null { get; }Public Shared ReadOnly Property Null As OpcTextProperty value
An instance of the OpcText class.
Value
Gets the value represented.
public string Value { get; }Public ReadOnly Property Value As StringProperty value
The value associated with the metadata represented.
Methods
CompareTo
| Overload | Description |
|---|---|
| CompareTo( | Compares the current OpcText with the other. |
| CompareTo( | Compares the current OpcText with another OpcText. |
CompareTo(object)
Compares the current OpcText with the other.
public int CompareTo(object other)Public Function CompareTo(other As Object) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | Object | The OpcText to compare with this OpcText. |
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(object)).
Implements
CompareTo(OpcText)
Compares the current OpcText with another OpcText.
public int CompareTo(OpcText other)Public Function CompareTo(other As OpcText) As IntegerParameters
| Name | Type | Description |
|---|---|---|
other | OpcText | The OpcText to compare with this OpcText. |
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(T)).
Equals
| Overload | Description |
|---|---|
| Equals( | Determines whether the specified other is equal to this OpcText. |
| Equals( | Determines whether the specified other is equal to this OpcText. |
Equals(object)
Determines whether the specified other is equal to this OpcText.
public override bool Equals(object other)Public Overrides Function Equals(other As Object) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | Object | The OpcText to compare to the current OpcText. |
Returns
The value true if the specified OpcText is equal to the current OpcText; otherwise the value false.
Overrides
Equals(OpcText)
Determines whether the specified other is equal to this OpcText.
public bool Equals(OpcText other)Public Function Equals(other As OpcText) As BooleanParameters
| Name | Type | Description |
|---|---|---|
other | OpcText | The OpcText to compare to the current OpcText. |
Returns
The value true if the specified OpcText is equal to the current OpcText; otherwise the value false.
Format
Replaces the format items in this OpcText with the string representation of a corresponding object in the specified array.
public OpcText Format(params object[] args)Public Function Format(ParamArray args As Object()) As OpcTextParameters
| Name | Type | Description |
|---|---|---|
args | params Object[] | An object array that contains zero or more objects to format. |
Returns
A new instance of the OpcText class with the same metadata as this OpcText instance with its Value formatted with the args specified.
GetHashCode
Retrieves a hash code for this OpcText.
public override int GetHashCode()Public Overrides Function GetHashCode() As IntegerReturns
An int that contains the hash code for the OpcText.
Overrides
ToString
| Overload | Description |
|---|---|
| ToString() | Converts the value of this instance to its equivalent string representation. |
| ToString( | Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information. |
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
ToString(string, IFormatProvider)
Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information.
public virtual string ToString(string format, IFormatProvider formatProvider)Public Overridable Function ToString(
format As String,
formatProvider As IFormatProvider) As StringParameters
| Name | Type | Description |
|---|---|---|
format | String | A standard or custom format string. |
formatProvider | IFormatProvider | An object that supplies culture-specific formatting information. |
Returns
The string representation of the value of this instance as specified by format and provider.
Exceptions
| Exception | Condition |
|---|---|
| FormatException | The format is invalid or not supported. |
Implements
ToString(string, IFormatProvider)
Operators
Equality
Returns a value indicating whether two instance of OpcText are equal.
public static bool operator ==(OpcText left, OpcText right)Public Shared Operator =(left As OpcText, right As OpcText) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcText | The first OpcText to compare. |
right | OpcText | The second OpcText to compare. |
Returns
The value true if left and right are equal; otherwise the value false.
GreaterThan
Determines whether the first specified OpcText object is greater than the second specified OpcText object.
public static bool operator >(OpcText left, OpcText right)Public Shared Operator >(left As OpcText, right As OpcText) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcText | The first OpcText object. |
right | OpcText | The second OpcText object. |
Returns
The value true if left is greater than right; otherwise, false.
GreaterThanOrEqual
Determines whether the first specified OpcText object is greater than or equal to the second specified OpcText object.
public static bool operator >=(OpcText left, OpcText right)Public Shared Operator >=(left As OpcText, right As OpcText) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcText | The first OpcText object. |
right | OpcText | The second OpcText object. |
Returns
The value true if left is greater than or equal to right; otherwise, false.
Implicit
| Overload | Description |
|---|---|
| implicit operator OpcText( | Converts a string to an OpcText object. |
| implicit operator OpcText( | Converts a LocalizedText to an OpcText object. |
| implicit operator LocalizedText( | Converts a OpcText to an LocalizedText object. |
| implicit operator string( | Converts a OpcText to an LocalizedText object. |
implicit operator OpcText(string)
Converts a string to an OpcText object.
public static implicit operator OpcText(string value)Public Shared Widening Operator CType(value As String) As OpcTextParameters
| Name | Type | Description |
|---|---|---|
value | String | A string that represents the value. |
Returns
An instance of the OpcText class initialized from the value.
implicit operator OpcText(LocalizedText)
Converts a LocalizedText to an OpcText object.
public static implicit operator OpcText(LocalizedText value)Public Shared Widening Operator CType(value As LocalizedText) As OpcTextParameters
| Name | Type | Description |
|---|---|---|
value | LocalizedText | A LocalizedText that represents the value. |
Returns
An instance of the OpcText class initialized from the value.
implicit operator LocalizedText(OpcText)
Converts a OpcText to an LocalizedText object.
public static implicit operator LocalizedText(OpcText value)Public Shared Widening Operator CType(value As OpcText) As LocalizedTextParameters
| Name | Type | Description |
|---|---|---|
value | OpcText | A OpcText that represents the value. |
Returns
LocalizedText
An instance of the LocalizedText class initialized from the value.
implicit operator string(OpcText)
Converts a OpcText to an LocalizedText object.
public static implicit operator string(OpcText value)Public Shared Widening Operator CType(value As OpcText) As StringParameters
| Name | Type | Description |
|---|---|---|
value | OpcText | A OpcText that represents the value. |
Returns
An instance of the LocalizedText class initialized from the value.
Inequality
Returns a value indicating whether two instances of OpcText are not equal.
public static bool operator !=(OpcText left, OpcText right)Public Shared Operator <>(left As OpcText, right As OpcText) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcText | The first OpcText to compare. |
right | OpcText | The second OpcText to compare. |
Returns
The value true if left and right are not equal; otherwise the value false.
LessThan
Determines whether the first specified OpcText object is less than the second specified OpcText object.
public static bool operator <(OpcText left, OpcText right)Public Shared Operator <(left As OpcText, right As OpcText) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcText | The first OpcText object. |
right | OpcText | The second OpcText 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 OpcText object is less than or equal to the second OpcText object.
public static bool operator <=(OpcText left, OpcText right)Public Shared Operator <=(left As OpcText, right As OpcText) As BooleanParameters
| Name | Type | Description |
|---|---|---|
left | OpcText | The first OpcText object. |
right | OpcText | The second OpcText 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 ( |

