Share via


Culture.TryGetCulture method (String, Culture)

TryGetCulture attempts to put a Culture object that corresponds to the name 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 ( _
    name As String, _
    <OutAttribute> ByRef culture As Culture _
) As Boolean
'Usage
Dim name As String
Dim culture As Culture
Dim returnValue As Boolean

returnValue = Culture.TryGetCulture(name, _
    culture)
public static bool TryGetCulture(
    string name,
    out Culture culture
)

Parameters

Return value

Type: System.Boolean

See also

Reference

Culture class

Culture members

TryGetCulture overload

Microsoft.Exchange.Data.Globalization namespace