Version

GetNonNeutralCulture(CultureInfo) Method

Returns a specific, i.e. non-neutral, culture that can be used to format strings.
Syntax
'Declaration
 
Public Overloads Shared Function GetNonNeutralCulture( _
   ByVal culture As CultureInfo _
) As CultureInfo
public static CultureInfo GetNonNeutralCulture( 
   CultureInfo culture
)

Parameters

culture
A CultureInfo object.

Return Value

The passed in culture if it is non-neutral. Otherwise, a specific culture that is appropriate for the neutral culture. If a specific culture can not be found then the current Thread's CurrentUICulture will be returned.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionIf culture is null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also