Culture.TryGetCulture Method (Int32, out Culture)
TryGetCulture attempts to put a Culture object that corresponds to the lcid parameter into the culture out parameter. TryGetCulture does not throw an exception if it fails.
Namespace: Microsoft.Exchange.Data.Globalization
Assembly: Microsoft.Exchange.Data.Common (in microsoft.exchange.data.common.dll)
Syntax
'Declaration
Public Shared Function TryGetCulture ( _
lcid As Integer, _
<OutAttribute> ByRef culture As Culture _
) As Boolean
public static bool TryGetCulture (
int lcid,
out Culture culture
)
public:
static bool TryGetCulture (
int lcid,
[OutAttribute] Culture^% culture
)
public static boolean TryGetCulture (
int lcid,
/** @attribute OutAttribute() */ /** @ref */ Culture culture
)
JScript does not support passing value-type arguments by reference.
Parameters
- lcid
The locale ID for which to obtain a culture.
- culture
A Culture object in which to store the result.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,
Target Platforms
Windows Server 2003