ILocalizationServiceTryGetString Method (CultureInfo, Guid, String, Object, String)

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

Parameters

culture
Type: System.GlobalizationCultureInfo
The culture for which to retrieve the string.
moduleId
Type: SystemGuid
The ID of the module for which the strings are registered.
key
Type: SystemString
When this method returns, contains the key of the string to look up.
formatArgs
Type: SystemObject
An object array that contains zero or more objects to format (may be ).
localizedString
Type: SystemString
The localized string.

Return Value

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