Reference
OpcServerGlobalization Members
Provides mechanisms to control the localization of data and information.
Reference
OpcServerGlobalization Members
- Type
- OpcServerGlobalization
- Namespace
- Opc.UaFx.Server
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Methods
AddResource
| Overload | Description |
|---|---|
| AddResource( | Adds or overrides the specified resource value to/in the resources of the culture identified by cultureName using the key to identify the resource entry. |
| AddResource( | Adds or overrides the specified resource value to/in the resources of the culture specified using the key to identify the resource entry. |
AddResource(string, string, string)
Adds or overrides the specified resource value to/in the resources of the culture identified by cultureName using the key to identify the resource entry.
public void AddResource(string cultureName, string key, string value)Public Sub AddResource(cultureName As String, key As String, value As String)Parameters
| Name | Type | Description |
|---|---|---|
cultureName | String | The Name of a well known non-neutral CultureInfo. |
key | String | The identifier of the resource value. |
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. |
AddResource(CultureInfo, string, string)
Adds or overrides the specified resource value to/in the resources of the culture specified using the key to identify the resource entry.
public void AddResource(CultureInfo culture, string key, string value)Public Sub AddResource(culture As CultureInfo, key As String, value As String)Parameters
| Name | Type | Description |
|---|---|---|
culture | CultureInfo | The non-neutral CultureInfo. |
key | String | The identifier of the resource value. |
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 ( |
AddResources
| Overload | Description |
|---|---|
| AddResources( | Adds or overrides the specified resources to/in the resources of the culture identified by cultureName. |
| AddResources( | Adds or overrides the specified resources to/in the resources of the culture specified. |
| AddResources( | Adds or overrides the specified resources to/in the resources of the culture identified by cultureName. |
| AddResources( | Adds or overrides the specified resources to/in the resources of the culture specified. |
| AddResources( | Adds or overrides the specified resources to/in the resources of the culture identified by cultureName. |
| AddResources( | Adds or overrides the specified resources to/in the resources of the culture specified. |
| AddResources( | Adds or overrides the resources in the resourceManager to/in the resources of the culture identified by cultureName. |
| AddResources( | Adds or overrides the resources in the resourceManager to/in the resources of the culture specified. |
AddResources(string, params KeyValuePair<string, string>[])
Adds or overrides the specified resources to/in the resources of the culture identified by cultureName.
public void AddResources(
string cultureName,
params KeyValuePair<string, string>[] resources)Public Sub AddResources(
cultureName As String,
ParamArray resources As KeyValuePair(Of String, String)())Parameters
| Name | Type | Description |
|---|---|---|
cultureName | String | The Name of a well known non-neutral CultureInfo. |
resources | params KeyValuePair<String, String>[] | An array of KeyValuePair< |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The cultureName is an empty string or the CultureInfo referred to by cultureName is a neutral culture. |
| Argument | The cultureName or resources is a null reference ( |
| Culture | The culture specified by cultureName does not refer to a well known culture. |
AddResources(CultureInfo, params KeyValuePair<string, string>[])
Adds or overrides the specified resources to/in the resources of the culture specified.
public void AddResources(
CultureInfo culture,
params KeyValuePair<string, string>[] resources)Public Sub AddResources(
culture As CultureInfo,
ParamArray resources As KeyValuePair(Of String, String)())Parameters
| Name | Type | Description |
|---|---|---|
culture | CultureInfo | The non-neutral CultureInfo. |
resources | params KeyValuePair<String, String>[] | An array of KeyValuePair< |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The culture is a neutral culture. |
| Argument | The culture or resources is a null reference ( |
AddResources(string, IDictionary<string, string>)
Adds or overrides the specified resources to/in the resources of the culture identified by cultureName.
public void AddResources(
string cultureName,
IDictionary<string, string> resources)Public Sub AddResources(
cultureName As String,
resources As IDictionary(Of String, String))Parameters
| Name | Type | Description |
|---|---|---|
cultureName | String | The Name of a well known non-neutral CultureInfo. |
resources | IDictionary<String, String> | A dictionary its items are to be used to define the different resource entries using the key as the identifier and the value as the value of the resource entry. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The cultureName is an empty string or the CultureInfo referred to by cultureName is a neutral culture. |
| Argument | The cultureName or resources is a null reference ( |
| Culture | The culture specified by cultureName does not refer to a well known culture. |
AddResources(CultureInfo, IDictionary<string, string>)
Adds or overrides the specified resources to/in the resources of the culture specified.
public void AddResources(
CultureInfo culture,
IDictionary<string, string> resources)Public Sub AddResources(
culture As CultureInfo,
resources As IDictionary(Of String, String))Parameters
| Name | Type | Description |
|---|---|---|
culture | CultureInfo | The non-neutral CultureInfo. |
resources | IDictionary<String, String> | A dictionary its items are to be used to define the different resource entries using the key as the identifier and the value as the value of the resource entry. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The culture is a neutral culture. |
| Argument | The culture or resources is a null reference ( |
AddResources(string, IEnumerable<KeyValuePair<string, string>>)
Adds or overrides the specified resources to/in the resources of the culture identified by cultureName.
public void AddResources(
string cultureName,
IEnumerable<KeyValuePair<string, string>> resources)Public Sub AddResources(
cultureName As String,
resources As IEnumerable(Of KeyValuePair(Of String, String)))Parameters
| Name | Type | Description |
|---|---|---|
cultureName | String | The Name of a well known non-neutral CultureInfo. |
resources | IEnumerable<KeyValuePair<String, String>> | A sequence of KeyValuePair< |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The cultureName is an empty string or the CultureInfo referred to by cultureName is a neutral culture. |
| Argument | The cultureName or resources is a null reference ( |
| Culture | The culture specified by cultureName does not refer to a well known culture. |
AddResources(CultureInfo, IEnumerable<KeyValuePair<string, string>>)
Adds or overrides the specified resources to/in the resources of the culture specified.
public void AddResources(
CultureInfo culture,
IEnumerable<KeyValuePair<string, string>> resources)Public Sub AddResources(
culture As CultureInfo,
resources As IEnumerable(Of KeyValuePair(Of String, String)))Parameters
| Name | Type | Description |
|---|---|---|
culture | CultureInfo | The non-neutral CultureInfo. |
resources | IEnumerable<KeyValuePair<String, String>> | A sequence of KeyValuePair< |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The culture is a neutral culture. |
| Argument | The culture or resources is a null reference ( |
AddResources(string, ResourceManager)
Adds or overrides the resources in the resourceManager to/in the resources of the culture identified by cultureName.
public void AddResources(string cultureName, ResourceManager resourceManager)Public Sub AddResources(
cultureName As String,
resourceManager As ResourceManager)Parameters
| Name | Type | Description |
|---|---|---|
cultureName | String | The Name of a well known non-neutral CultureInfo. |
resourceManager | ResourceManager | The ResourceManager its culture-related ResourceSet is to be queried and used to add/override the resource entries associated with the culture identified by the cultureName. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The cultureName is an empty string or the CultureInfo referred to by cultureName is a neutral culture or the resourceManager does not provide a ResourceSet for the culture identified by the cultureName. |
| Argument | The cultureName or resourceManager is a null reference ( |
| Culture | The culture specified by cultureName does not refer to a well known culture. |
AddResources(CultureInfo, ResourceManager)
Adds or overrides the resources in the resourceManager to/in the resources of the culture specified.
public void AddResources(CultureInfo culture, ResourceManager resourceManager)Public Sub AddResources(
culture As CultureInfo,
resourceManager As ResourceManager)Parameters
| Name | Type | Description |
|---|---|---|
culture | CultureInfo | The non-neutral CultureInfo. |
resourceManager | ResourceManager | The ResourceManager its culture-related ResourceSet is to be queried and used to add/override the resource entries associated with the culture specified. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The culture is a neutral culture or the resourceManager does not provide a ResourceSet for the culture specified. |
| Argument | The culture or resourceManager is a null reference ( |
Translate
| Overload | Description |
|---|---|
| Translate( | Translates the result specified. |
| Translate( | Translates the text specified. |
| Translate( | Translates the message using the resource identified by its key and then formats it with the arguments specified. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
Translate(OpcContext, OpcResult)
Translates the result specified.
public OpcResult Translate(OpcContext context, OpcResult result)Public Function Translate(
context As OpcContext,
result As OpcResult) As OpcResultParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext for which the result is to be localized. |
result | OpcResult | The OpcResult to localize. |
Returns
The localized OpcResult or the result specified if no resource could determined to localize the result.
Translate(OpcContext, OpcText)
Translates the text specified.
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 for which the text is to be localized. |
text | OpcText | The OpcText to localize. |
Returns
The localized OpcText or the text specified if no resource could determined to localize the text.
Translate(OpcContext, string, string, params object[])
Translates the message using the resource identified by its key and then formats it with the arguments specified.
public OpcText Translate(
OpcContext context,
string key,
string message,
params object[] arguments)Public Function Translate(
context As OpcContext,
key As String,
message As String,
ParamArray arguments As Object()) As OpcTextParameters
| Name | Type | Description |
|---|---|---|
context | OpcContext | The OpcContext for which the key, message and arguments are to be localized. |
key | String | The key used to look up the translation resource. |
message | String | The text to translate. |
arguments | params Object[] | The format arguments. |
Returns
The localized OpcText or a null reference (Nothing in Visual Basic) if no resource could determined to localize the key, message and arguments.

