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
name
Type: System.StringThe name of the culture to obtain.
culture
Type: Microsoft.Exchange.Data.Globalization.CultureA Culture object in which to store the result.
Return value
Type: System.Boolean