Compartir a través de


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