导出 (0) 打印
全部展开
EN
此内容没有您的语言版本,但有英语版本。

ResourceManager.GetNeutralResourcesLanguage Method

Returns the CultureInfo for the main assembly's neutral resources by reading the value of the NeutralResourcesLanguageAttribute on a specified Assembly.

[Visual Basic]
Protected Shared Function GetNeutralResourcesLanguage( _
   ByVal a As Assembly _
) As CultureInfo
[C#]
protected static CultureInfo GetNeutralResourcesLanguage(
 Assembly a
);
[C++]
protected: static CultureInfo* GetNeutralResourcesLanguage(
 Assembly* a
);
[JScript]
protected static function GetNeutralResourcesLanguage(
   a : Assembly
) : CultureInfo;

Parameters

a
The assembly for which to return a CultureInfo.

Return Value

The culture from the NeutralResourcesLanguageAttribute, if found; otherwise, CultureInfo.InvariantCulture.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

.NET Framework Security: 

See Also

ResourceManager Class | ResourceManager Members | System.Resources Namespace

Microsoft 正在进行一项网上调查,以了解您对 MSDN 网站的意见。 如果您选择参加,我们将会在您离开 MSDN 网站时向您显示该网上调查。

是否要参加?
显示:
© 2014 Microsoft