CultureInfoCache.GetCultureInfo(String, IList<CultureInfo>) Method

Definition

Gets a read-only cached CultureInfo for the specified name. Only names that exist in supportedCultures will be used.

public:
 static System::Globalization::CultureInfo ^ GetCultureInfo(System::String ^ name, System::Collections::Generic::IList<System::Globalization::CultureInfo ^> ^ supportedCultures);
public static System.Globalization.CultureInfo GetCultureInfo (string name, System.Collections.Generic.IList<System.Globalization.CultureInfo> supportedCultures);
static member GetCultureInfo : string * System.Collections.Generic.IList<System.Globalization.CultureInfo> -> System.Globalization.CultureInfo
Public Shared Function GetCultureInfo (name As String, supportedCultures As IList(Of CultureInfo)) As CultureInfo

Parameters

name
String

The culture name.

supportedCultures
IList<CultureInfo>

The cultures supported by the application.

Returns

CultureInfo

A read-only cached CultureInfo or null if a match wasn't found in supportedCultures. .

Applies to