Platform Core .NET Assemblies API
GetCultureValue(CultureInfo,Boolean) Method
See Also  Send Feedback
Terrasoft.Common Namespace > LocalizableValue<T> Class : GetCultureValue(CultureInfo,Boolean) Method
culture
Culture.
throwIfNoManager
Flag that indicates if method has to throw the ItemNotFoundException exception.

Glossary Item Box

Gets the localized value of the specified type for the specified culture. Depending on the value of the throwIfNoManager parameter method may generate an exception of the ItemNotFoundException type, unless a resource manager is set for this localized value.

Syntax

 
C#
 
 

Parameters

culture
Culture.
throwIfNoManager
Flag that indicates if method has to throw the ItemNotFoundException exception.

Return Value

Localized value of specified type.

Exceptions

ExceptionDescription
ItemNotFoundExceptionIf throwIfNoManager equals true and manager is not set.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.