System.Resources.ResourceManager.GetResourceSet Method

Retrieves the resource set for a particular culture.


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


The culture whose resources are to be retrieved.
true to load the resource set, if it has not been loaded yet; otherwise, false.
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.)


The resource set for the specified culture.


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.


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