Culture.TryGetCulture method (Int32, 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
'Usage
Dim lcid As Integer
Dim culture As Culture
Dim returnValue As Boolean
returnValue = Culture.TryGetCulture(lcid, _
culture)
public static bool TryGetCulture(
int lcid,
out Culture culture
)
Parameters
lcid
Type: System.Int32The locale ID for which to obtain a culture.
culture
Type: Microsoft.Exchange.Data.Globalization.CultureA Culture object in which to store the result.
Return value
Type: System.Boolean