ResourceManager.GetNeutralResourcesLanguage Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns the CultureInfo for the main assembly's neutral resources by reading the value of the NeutralResourcesLanguageAttribute on a specified Assembly.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Protected Shared Function GetNeutralResourcesLanguage ( _ a As Assembly _ ) As CultureInfo
Parameters
- a
- Type: System.Reflection.Assembly
The assembly for which to return a CultureInfo.
Return Value
Type: System.Globalization.CultureInfoThe culture from the NeutralResourcesLanguageAttribute, if found; otherwise, CultureInfo.InvariantCulture.
Use this method in derived classes of the ResourceManager to speed up lookups in one particular culture. For example, if this method returns "en-US" for the CultureInfo, then any U.S. English resource lookups will go straight to the main assembly and not look for the "en-US" nor "en" satellite assemblies.