CultureInfoCache.GetCultureInfo(String, IList<CultureInfo>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
A read-only cached CultureInfo or null if a match wasn't found in
supportedCultures.
.