System.Resources.ResourceManager.GetResourceSet Method

Retrieves the resource set for a particular culture.

Syntax

public virtual ResourceSet GetResourceSet (System.Globalization.CultureInfo culture, bool createIfNotExists, bool tryParents)

Parameters

culture
The culture whose resources are to be retrieved.
createIfNotExists
true to load the resource set, if it has not been loaded yet; otherwise, false.
tryParents
true to use resource fallback to load an appropriate resource if the resource set cannot be found; false to bypass the resource fallback process. (See the Remarks section.)

Returns

The resource set for the specified culture.

Remarks

The resource set that is returned represents the resources that are localized for the specified culture. If the resources have not been localized for that culture and tryParents is true, ResourceManager.GetResourceSet(System.Globalization.CultureInfo, bool, bool) uses resource fallback rules to load an appropriate resource. If tryParents is false and a culture-specific resource set cannot be found, the method returns null. For more information about resource fallback, see "The Resource Fallback Process" section in the Packaging and Deploying Resources article.

Requirements

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0