ResourceManager.GetResourceFileName(CultureInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates the name of the resource file for the given CultureInfo object.
protected:
virtual System::String ^ GetResourceFileName(System::Globalization::CultureInfo ^ culture);
protected virtual string GetResourceFileName (System.Globalization.CultureInfo culture);
abstract member GetResourceFileName : System.Globalization.CultureInfo -> string
override this.GetResourceFileName : System.Globalization.CultureInfo -> string
Protected Overridable Function GetResourceFileName (culture As CultureInfo) As String
Parameters
- culture
- CultureInfo
The culture object for which a resource file name is constructed.
Returns
The name that can be used for a resource file for the given CultureInfo object.
Remarks
The GetResourceFileName method is useful only if you write your own class that derives from the ResourceManager class.
This method uses the CultureInfo.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 a resource file name (suitable for passing to the ResourceReader constructor) or a manifest resource blob name.
A derived class can override this method to look for a different extension, such as ".ResX", or a completely different scheme for naming resource files. Note that the method can be used to customize the name of a resource file within a satellite assembly, and not to customize the name of the satellite assembly itself.