ILocalizationServiceGetString(Guid, String, CultureInfo, Object) Method

Gets the string corresponding to the specified key.

Namespace: Dundas.BI
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
string GetString(
	Guid moduleId,
	string key,
	CultureInfo culture,
	params Object?[] formatArgs
)

Parameters

moduleId  Guid
The ID of the module for which the string is registered.
key  String
The key of the string to look up.
culture  CultureInfo
The culture for which to retrieve the strings.
formatArgs  Object
An object array that contains zero or more objects to format.

Return Value

String
The string corresponding to key for the specified culture; or key if there was no corresponding string defined for that culture (or any of its parent cultures).
Exceptions
ExceptionCondition
ArgumentException

moduleId is Empty.

-or-

key is or empty.

ArgumentNullExceptionculture is .
FormatExceptionAn invalid number of format arguments was provided.
See Also