ResourceManager.GetNeutralResourcesLanguage(Assembly) 方法

定义

通过检索指定程序及上的 NeutralResourcesLanguageAttribute 特性为主程序集的默认资源返回区域性特定的信息。Returns culture-specific information for the main assembly's default resources by retrieving the value of the NeutralResourcesLanguageAttribute attribute on a specified assembly.

protected:
 static System::Globalization::CultureInfo ^ GetNeutralResourcesLanguage(System::Reflection::Assembly ^ a);
protected static System.Globalization.CultureInfo GetNeutralResourcesLanguage (System.Reflection.Assembly a);
static member GetNeutralResourcesLanguage : System.Reflection.Assembly -> System.Globalization.CultureInfo
Protected Shared Function GetNeutralResourcesLanguage (a As Assembly) As CultureInfo

参数

a
Assembly

要返回其的区域性特定的信息的程序集。The assembly for which to return culture-specific information.

返回

如果找到的话,则为 NeutralResourcesLanguageAttribute 中的特性;否则为固定区域性性。The culture from the NeutralResourcesLanguageAttribute attribute, if found; otherwise, the invariant culture.

安全性

ReflectionPermission
当通过诸如InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])等机制后期绑定调用时。when invoked late-bound through mechanisms such as InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). 关联的枚举:MemberAccessAssociated enumeration: MemberAccess.

适用于