Open this page in the API Guide

ILocalizationService.TryGetString Method (CultureInfo, Guid, String, 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.4.0.1000)
Syntax
bool TryGetString(
	CultureInfo culture,
	Guid moduleId,
	string key,
	out string localizedString
)

Parameters

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

Return Value

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

moduleId is Empty.

-or-

key is null or empty.

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