This topic has not yet been rated - Rate this topic

ResourceManager.GetResourceFileName Method

April 12, 2014

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

Namespace:  System.Resources
Assembly:  mscorlib (in mscorlib.dll)
protected virtual string GetResourceFileName(
	CultureInfo culture
)

Parameters

culture
Type: System.Globalization.CultureInfo
The culture for which a resource file name is constructed.

Return Value

Type: System.String
The name that can be used for a resource file for the given CultureInfo.

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 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.