ILocalizationServiceGetString Method (Guid, String, CultureInfo, Object)

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 (24.3.0.1000)
Syntax
string GetString(
	Guid moduleId,
	string key,
	CultureInfo culture,
	params Object?[] formatArgs
)

Parameters

moduleId
Type: SystemGuid
The ID of the module for which the string is registered.
key
Type: SystemString
The key of the string to look up.
culture
Type: System.GlobalizationCultureInfo
The culture for which to retrieve the strings.
formatArgs
Type: SystemObject
An object array that contains zero or more objects to format.

Return Value

Type: 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