Export (0) Print
Expand All

ResourceManager.InternalGetResourceSet Method

Provides the implementation for finding a resource set.

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

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


Type: System.Globalization.CultureInfo

The culture object to look for.

Type: System.Boolean

true to load the resource set, if it has not been loaded yet; otherwise, false.

Type: System.Boolean

true to check parent CultureInfo objects if the resource set cannot be loaded; otherwise, false.

Return Value

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


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


There was an internal error in the runtime.


The satellite assembly associated with culture could not be located.

Notes to Inheritors

This method completes all the work necessary to find a resource set, and can be recursive and reentrant. In other words, this method might load an assembly and trigger an AssemblyLoad event, which then calls back into a ResourceManager object that has not been completely initialized. To avoid taking extra locks, this method is not thread safe. The GetResourceSet, GetString, and GetObject methods do all the necessary synchronization.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft