This documentation is archived and is not being maintained.

ResourceManager.GetResourceFileName Method

Generates the name for the resource file for the given CultureInfo.

[Visual Basic]
Protected Overridable Function GetResourceFileName( _
   ByVal culture As CultureInfo _
) As String
[C#]
protected virtual string GetResourceFileName(
 CultureInfo culture
);
[C++]
protected: virtual String* GetResourceFileName(
 CultureInfo* culture
);
[JScript]
protected function GetResourceFileName(
   culture : CultureInfo
) : String;

Parameters

culture
The CultureInfo for which a resource file name is constructed.

Return Value

The name that can be used for a resource file for the given CultureInfo.

Remarks

This method uses CultureInfo 's Name property as part of the file name for all cultures other than the invariant culture. This method does not look in an assembly's manifest or touch the disk, and is used only to construct what a resource file name (suitable for passing to the ResourceReader constructor) or a manifest resource blob name should be.

A derived class can override this method to look for a different extension, such as ".ResX", or a completely different scheme for naming files.

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 | CultureInfo | Developing World-Ready Applications

Show: