Reference
OpcArgumentGlobalization Members
Provides mechanisms to control the localization of data and information used by an argument.
Reference
OpcArgumentGlobalization Members
- Type
- OpcArgumentGlobalization
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Properties
Cultures
Gets a sequence of CultureInfo objects associated with the resources maintained by the current OpcArgumentGlobalization.
public IEnumerable<CultureInfo> Cultures { get; }Public ReadOnly Property Cultures As IEnumerable(Of CultureInfo)Property value
An IEnumerable<T> of unique CultureInfo objects.
Locales
Gets a sequence of string objects representing the Name of the Cultures associated with the resources maintained by the current OpcArgumentGlobalization.
public IEnumerable<string> Locales { get; }Public ReadOnly Property Locales As IEnumerable(Of String)Property value
An IEnumerable<T> of unique string objects.
Values
Gets a sequence of string objects representing the resources associated with the Cultures maintained by the current OpcArgumentGlobalization.
public IEnumerable<string> Values { get; }Public ReadOnly Property Values As IEnumerable(Of String)Property value
An IEnumerable<T> of string objects.
Methods
Add
| Overload | Description |
|---|---|
| Add( | Adds or overrides the specified resource value associated with the culture identified by cultureName. |
| Add( | Adds or overrides the specified resource value associated with the culture specified. |
Add(string, string)
Adds or overrides the specified resource value associated with the culture identified by cultureName.
public void Add(string cultureName, string value)Public Sub Add(cultureName As String, value As String)Parameters
| Name | Type | Description |
|---|---|---|
cultureName | String | The Name of a well known non-neutral CultureInfo. |
value | String | The string value of the resource. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The cultureName is an empty string or the CultureInfo referred to by cultureName is a neutral culture. |
| Argument | The cultureName is a null reference ( |
| Culture | The culture specified by cultureName does not refer to a well known culture. |
Add(CultureInfo, string)
Adds or overrides the specified resource value associated with the culture specified.
public void Add(CultureInfo culture, string value)Public Sub Add(culture As CultureInfo, value As String)Parameters
| Name | Type | Description |
|---|---|---|
culture | CultureInfo | The non-neutral CultureInfo. |
value | String | The string value of the resource. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The culture is a neutral culture. |
| Argument | The culture is a null reference ( |
Clear
Removes all resources associated with the Cultures.
public void Clear()Public Sub Clear()Remove
| Overload | Description |
|---|---|
| Remove( | Removes the resource associated with the culture identified by cultureName. |
| Remove( | Removes the resource associated with the culture specified. |
Remove(string)
Removes the resource associated with the culture identified by cultureName.
public void Remove(string cultureName)Public Sub Remove(cultureName As String)Parameters
| Name | Type | Description |
|---|---|---|
cultureName | String | The Name of a well known non-neutral CultureInfo. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The cultureName is an empty string or the CultureInfo referred to by cultureName is a neutral culture. |
| Argument | The cultureName is a null reference ( |
| Culture | The culture specified by cultureName does not refer to a well known culture. |
Remove(CultureInfo)
Removes the resource associated with the culture specified.
public void Remove(CultureInfo culture)Public Sub Remove(culture As CultureInfo)Parameters
| Name | Type | Description |
|---|---|---|
culture | CultureInfo | The non-neutral CultureInfo. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The culture is a neutral culture. |
| Argument | The culture is a null reference ( |
Translate
Translates the text into the preferred locales of the context using the resources maintained by the current OpcArgumentGlobalization.
public OpcText Translate(OpcContext context, OpcText text)Public Function Translate(context As OpcContext, text As OpcText) As OpcTextParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext which provides the preferred locales. |
text | OpcText | The OpcText to translate. |
Returns
The resource of the first preferred locale which has a resource; otherwise a resource of the same language as a preferred locale; otherwise the text.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or text is a null reference ( |
| Culture | A preferred locale of the context does not refer to a well known culture. |
Remarks
If the first preferred locale is the locale of the text, the text is returned unchanged.

