Namespace: Opc.UaFx.Server
Assemblies: Opc.UaFx.Advanced.dll, Opc.UaFx.Advanced.dll
The OpcServerGlobalization type exposes the following members.
Adds or overrides the specified resource value
to/in the resources of the culture
specified using the key
to identify the resource entry.
C#
public void AddResource(CultureInfo culture, string key, string value)
Parameters
culture
CultureInfo
The non-neutral CultureInfo.
key
String
The identifier of the resource value
.
value
String
The String value of the resource.
Exceptions
The culture
is a neutral culture.
The culture
is a null reference (Nothing in Visual Basic).
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.
C#
public void AddResource(string cultureName, string key, string value)
Parameters
cultureName
String
The CultureInfo.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
The cultureName
is an empty string or the CultureInfo referred to by cultureName
is a neutral culture.
The cultureName
is a null reference (Nothing in Visual Basic).
The culture specified by cultureName
does not refer to a well known culture.
Adds or overrides the specified resources
to/in the resources of the culture
specified.
C#
public void AddResources(CultureInfo culture, IDictionary<string, string> resources)
Parameters
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
The culture
is a neutral culture.
The culture
or resources
is a null reference (Nothing in Visual Basic).
Adds or overrides the specified resources
to/in the resources of the culture
specified.
C#
public void AddResources(CultureInfo culture, IEnumerable<KeyValuePair<string, string>> resources)
Parameters
culture
CultureInfo
The non-neutral CultureInfo.
resources
IEnumerable<KeyValuePair>
A sequence of KeyValuePair´2 objects there the Key identifies the resource entry and its resource Value.
Exceptions
The culture
is a neutral culture.
The culture
or resources
is a null reference (Nothing in Visual Basic).
Adds or overrides the specified resources
to/in the resources of the culture
specified.
C#
public void AddResources(CultureInfo culture, params KeyValuePair<string, string>[] resources)
Parameters
culture
CultureInfo
The non-neutral CultureInfo.
resources
KeyValuePair<String, String>[]
An array of KeyValuePair´2 objects there the Key identifies the resource entry and its resource Value.
Exceptions
The culture
is a neutral culture.
The culture
or resources
is a null reference (Nothing in Visual Basic).
Adds or overrides the resources in the resourceManager
to/in the resources of the culture
specified.
C#
public void AddResources(CultureInfo culture, ResourceManager resourceManager)
Parameters
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
The culture
is a neutral culture or the resourceManager
does not provide a ResourceSet for the culture
specified.
The culture
or resourceManager
is a null reference (Nothing in Visual Basic).
Adds or overrides the specified resources
to/in the resources of the culture identified by cultureName
.
C#
public void AddResources(string cultureName, IDictionary<string, string> resources)
Parameters
cultureName
String
The CultureInfo.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
The cultureName
is an empty string or the CultureInfo referred to by cultureName
is a neutral culture.
The cultureName
or resources
is a null reference (Nothing in Visual Basic).
The culture specified by cultureName
does not refer to a well known culture.
Adds or overrides the specified resources
to/in the resources of the culture identified by cultureName
.
C#
public void AddResources(string cultureName, IEnumerable<KeyValuePair<string, string>> resources)
Parameters
cultureName
String
The CultureInfo.Name of a well known non-neutral CultureInfo.
resources
IEnumerable<KeyValuePair>
A sequence of KeyValuePair´2 objects there the Key identifies the resource entry and its resource Value.
Exceptions
The cultureName
is an empty string or the CultureInfo referred to by cultureName
is a neutral culture.
The cultureName
or resources
is a null reference (Nothing in Visual Basic).
The culture specified by cultureName
does not refer to a well known culture.
Adds or overrides the specified resources
to/in the resources of the culture identified by cultureName
.
C#
public void AddResources(string cultureName, params KeyValuePair<string, string>[] resources)
Parameters
cultureName
String
The CultureInfo.Name of a well known non-neutral CultureInfo.
resources
KeyValuePair<String, String>[]
An array of KeyValuePair´2 objects there the Key identifies the resource entry and its resource Value.
Exceptions
The cultureName
is an empty string or the CultureInfo referred to by cultureName
is a neutral culture.
The cultureName
or resources
is a null reference (Nothing in Visual Basic).
The culture specified by cultureName
does not refer to a well known culture.
Adds or overrides the resources in the resourceManager
to/in the resources of the culture identified by cultureName
.
C#
public void AddResources(string cultureName, ResourceManager resourceManager)
Parameters
cultureName
String
The CultureInfo.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
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
.
The cultureName
or resourceManager
is a null reference (Nothing in Visual Basic).
The culture specified by cultureName
does not refer to a well known culture.
Translates the result
specified.
C#
public OpcResult Translate(OpcContext context, OpcResult result)
Parameters
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
.
Exceptions
The context
is a null reference (Nothing in Visual Basic).
Translates the text
specified.
C#
public OpcText Translate(OpcContext context, OpcText text)
Parameters
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
.
Exceptions
The context
is a null reference (Nothing in Visual Basic).
Translates the message
using the resource identified by its key
and then formats it with the arguments
specified.
C#
public OpcText Translate(OpcContext context, string key, string message, params object[] arguments)
Parameters
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
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
.
Exceptions
The context
is a null reference (Nothing in Visual Basic).