OpcText Members

Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcText type exposes the following members.

OpcText(String)

Initializes a new instance of the OpcText class using the value.

C#

public OpcText(string value)


Parameters

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.

C#

public OpcText(string value, string cultureName)


Parameters

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.

C#

public OpcText(string value, string cultureName, string key)


Parameters

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.

Culture

Gets the culture which is used to localize the Value.

C#

public CultureInfo Culture { get; }


Property Value

CultureInfo

An instance of the CultureInfo if CultureName references to a known culture; otherwise the CultureInfo.InvariantCulture.

CultureName

Gets the name of the culture used to localize the Value.

C#

public string CultureName { get; }


Property Value

String

The CultureInfo.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).

C#

public bool IsNull { get; }


Property Value

Boolean

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.

C#

public string Key { get; }


Property Value

String

A key used to look up alternative localizations of the Value.

Null

Gets a value used to identify an undefined OpcText.

C#

public static OpcText Null { get; }


Property Value

OpcText

An instance of the OpcText class.

Value

Gets the value represented.

C#

public string Value { get; }


Property Value

String

The value associated with the metadata represented.

CompareTo(Object)

Compares the current OpcText with the other.

C#

public int CompareTo(object other)


Parameters

other Object

The OpcText to compare with this OpcText.


Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(Object)).

CompareTo(OpcText)

Compares the current OpcText with another OpcText.

C#

public int CompareTo(OpcText other)


Parameters

other OpcText

The OpcText to compare with this OpcText.


Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(0)).

Equals(Object)

Determines whether the specified other is equal to this OpcText.

C#

public override bool Equals(object other)


Parameters

other Object

The OpcText to compare to the current OpcText.


Returns

Boolean

The value true if the specified OpcText is equal to the current OpcText; otherwise the value false.

Equals(OpcText)

Determines whether the specified other is equal to this OpcText.

C#

public bool Equals(OpcText other)


Parameters

other OpcText

The OpcText to compare to the current OpcText.


Returns

Boolean

The value true if the specified OpcText is equal to the current OpcText; otherwise the value false.

Format(Object[])

Replaces the format items in this OpcText with the string representation of a corresponding object in the specified array.

C#

public OpcText Format(params object[] args)


Parameters

args Object[]

An object array that contains zero or more objects to format.


Returns

OpcText

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.

C#

public override int GetHashCode()


Returns

Int32

An Int32 that contains the hash code for the OpcText.

ToString()

Converts the value of this instance to its equivalent string representation.

C#

public override string ToString()


Returns

String

The string representation of the value of this instance.

ToString(String, IFormatProvider)

Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information.

C#

public virtual string ToString(string format, IFormatProvider formatProvider)


Parameters

format String

A standard or custom format string.

formatProvider IFormatProvider

An object that supplies culture-specific formatting information.


Returns

String

The string representation of the value of this instance as specified by format and provider.



Exceptions

FormatException

The format is invalid or not supported.

Equality(OpcText, OpcText)

Returns a value indicating whether two instance of OpcText are equal.

C#

public static bool operator ==(OpcText left, OpcText right)

GreaterThan(OpcText, OpcText)

Determines whether the first specified OpcText object is greater than the second specified OpcText object.

C#

public static bool operator>(OpcText left, OpcText right)

GreaterThanOrEqual(OpcText, OpcText)

Determines whether the first specified OpcText object is greater than or equal to the second specified OpcText object.

C#

public static bool operator >=(OpcText left, OpcText right)

Implicit(LocalizedText to OpcText)

Converts a LocalizedText to an OpcText object.

C#

public static implicit operator OpcText(LocalizedText value)

Implicit(OpcText to LocalizedText)

Converts a OpcText to an LocalizedText object.

C#

public static implicit operator LocalizedText(OpcText value)

Implicit(OpcText to String)

Converts a OpcText to an LocalizedText object.

C#

public static implicit operator string (OpcText value)

Implicit(String to OpcText)

Converts a String to an OpcText object.

C#

public static implicit operator OpcText(string value)

Inequality(OpcText, OpcText)

Returns a value indicating whether two instances of OpcText are not equal.

C#

public static bool operator !=(OpcText left, OpcText right)

LessThan(OpcText, OpcText)

Determines whether the first specified OpcText object is less than the second specified OpcText object.

C#

public static bool operator <(OpcText left, OpcText right)


Exceptions

ArgumentNullException

The left is a null reference (Nothing in Visual Basic).

LessThanOrEqual(OpcText, OpcText)

Determines whether the first specified OpcText object is less than or equal to the second OpcText object.

C#

public static bool operator <=(OpcText left, OpcText right)


Exceptions

ArgumentNullException

The left is a null reference (Nothing in Visual Basic).