Windows Dev Center

ResourceManager.InternalGetResourceSet Method

Provides the implementation for finding a ResourceSet.

Namespace:  System.Resources
Assembly:  mscorlib (in mscorlib.dll)

protected virtual ResourceSet InternalGetResourceSet(
	CultureInfo culture,
	bool createIfNotExists,
	bool tryParents


Type: System.Globalization.CultureInfo
The culture to look for.
Type: System.Boolean
true to load the ResourceSet, if it has not been loaded yet; otherwise, false.
Type: System.Boolean
true to try parent CultureInfo objects to see if they exist if ResourceSet cannot be loaded; otherwise, false.

Return Value

Type: System.Resources.ResourceSet
The specified resource set.


The main assembly does not contain a .resources file and it is required to look up a resource.


There was an internal error in the runtime.

Notes to Inheritors

This method completes all the work necessary to find a ResourceSet, and can be recursive and reentrant. To avoid taking extra locks, it is not thread safe. GetResourceSet, GetString, and GetObject do all the necessary synchronization.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2015 Microsoft