Namespace: Opc.UaFx
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcText type exposes the following members.
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.
Gets the culture which is used to localize the Value.
C#
public CultureInfo Culture { get; }
Property Value
An instance of the CultureInfo if CultureName references to a known culture; otherwise the CultureInfo.InvariantCulture.
Gets the name of the culture used to localize the Value.
C#
public string CultureName { get; }
Property Value
The CultureInfo.Name of the culture used to localize the Value.
Gets the value represented.
C#
public string Value { get; }
Property Value
The value associated with the metadata represented.
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
A new instance of the OpcText class with the same metadata as this OpcText instance with its Value formatted with the args
specified.
Converts the value of this instance to its equivalent string representation.
C#
public override string ToString()
Returns
The string representation of the value of this instance.
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
The string representation of the value of this instance as specified by format and provider.
Exceptions
The format
is invalid or not supported.
Returns a value indicating whether two instance of OpcText are equal.
C#
public static bool operator ==(OpcText left, OpcText right)
Converts a LocalizedText to an OpcText object.
C#
public static implicit operator OpcText(LocalizedText value)
Converts a OpcText to an LocalizedText object.
C#
public static implicit operator LocalizedText(OpcText value)
Converts a OpcText to an LocalizedText object.
C#
public static implicit operator string (OpcText value)
Returns a value indicating whether two instances of OpcText are not equal.
C#
public static bool operator !=(OpcText left, OpcText right)