ILocalizationServiceTryGetString(CultureInfo, Guid, String, String) Method

Tries the get the localized string with the specified key for the specified culture.

Namespace: Dundas.BI
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (26.2.0.1000)
Syntax
bool TryGetString(
	CultureInfo culture,
	Guid moduleId,
	string key,
	out string localizedString
)

Parameters

culture  CultureInfo
The culture for which to retrieve the string.
moduleId  Guid
The ID of the module for which the strings are registered.
key  String
When this method returns, contains the key of the string to look up.
localizedString  String
The localized string.

Return Value

Boolean
if a localized string was found for the specified culture or one of its parent cultures; otherwise .
Exceptions
ExceptionCondition
ArgumentException

moduleId is Empty.

-or-

key is or empty.

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