Share via


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.Int32

    The locale ID for which to obtain a culture.

Return value

Type: System.Boolean

See also

Reference

Culture class

Culture members

TryGetCulture overload

Microsoft.Exchange.Data.Globalization namespace