OpcArgumentGlobalization Members

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

Cultures

Gets a sequence of CultureInfo objects associated with the resources maintained by the current OpcArgumentGlobalization.

C#

public IEnumerable<CultureInfo> Cultures { get; }


Property Value

IEnumerable<CultureInfo>

An IEnumerable┬┤1 of unique CultureInfo objects.

Locales

Gets a sequence of String objects representing the CultureInfo.Name of the Cultures associated with the resources maintained by the current OpcArgumentGlobalization.

C#

public IEnumerable<string> Locales { get; }


Property Value

IEnumerable<String>

An IEnumerable┬┤1 of unique String objects.

Values

Gets a sequence of String objects representing the resources associated with the Cultures maintained by the current OpcArgumentGlobalization.

C#

public IEnumerable<string> Values { get; }


Property Value

IEnumerable<String>

An IEnumerable┬┤1 of String objects.

Add(CultureInfo, String)

Adds or overrides the specified resource value associated with the culture specified.

C#

public void Add(CultureInfo culture, string value)


Parameters

culture CultureInfo

The non-neutral CultureInfo.

value String

The String value of the resource.



Exceptions

ArgumentException

The culture is a neutral culture.

ArgumentNullException

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

Add(String, String)

Adds or overrides the specified resource value associated with the culture identified by cultureName.

C#

public void Add(string cultureName, string value)


Parameters

cultureName String

The CultureInfo.Name of a well known non-neutral CultureInfo.

value String

The String value of the resource.



Exceptions

ArgumentException

The cultureName is an empty string or the CultureInfo referred to by cultureName is a neutral culture.

ArgumentNullException

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

CultureNotFoundException

The culture specified by cultureName does not refer to a well known culture.

Clear()

Removes all resources associated with the Cultures.

C#

public void Clear()

Remove(CultureInfo)

Removes the resource associated with the culture specified.

C#

public void Remove(CultureInfo culture)


Parameters

culture CultureInfo

The non-neutral CultureInfo.



Exceptions

ArgumentException

The culture is a neutral culture.

ArgumentNullException

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

Remove(String)

Removes the resource associated with the culture identified by cultureName.

C#

public void Remove(string cultureName)


Parameters

cultureName String

The CultureInfo.Name of a well known non-neutral CultureInfo.



Exceptions

ArgumentException

The cultureName is an empty string or the CultureInfo referred to by cultureName is a neutral culture.

ArgumentNullException

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

CultureNotFoundException

The culture specified by cultureName does not refer to a well known culture.

Translate(OpcContext, OpcText)

C#

public OpcText Translate(OpcContext context, OpcText text)


Parameters

context OpcContext


text OpcText



Returns

OpcText



Exceptions

ArgumentNullException

The context or text is a null reference (Nothing in Visual Basic).