CultureInfoCache.GetCultureInfo(String, IList<CultureInfo>) 方法
定义
获取指定名称的只读缓存 CultureInfo。Gets a read-only cached CultureInfo for the specified name. 仅使用 supportedCultures 中存在的名称。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
参数
- name
- String
区域性名称。The culture name.
- supportedCultures
- IList<CultureInfo>
应用程序支持的区域性。The cultures supported by the application.
返回
如果在 supportedCultures 中找不到匹配项,则为只读缓存 CultureInfo 或 null。A read-only cached CultureInfo or null if a match wasn't found in supportedCultures.
..