Assembly: mscorlib (in mscorlib.dll)
This method will shrink the working set in a running application. Any future resource lookups on this ResourceManager will be as extensive as the first lookup, since it will need to search and load resources again. This can be useful in some complex threading scenarios, where creating a new ResourceManager is the appropriate behavior.
Starting with the .NET Framework version 2.0, the method is not threadsafe with respect to GetObject, GetString, and GetStream operations. The advantage of this change is a performance improvement for multiple threads accessing resources. The disadvantage is if you call the method in one thread while simultaneously getting a resource in another thread, the get operation can throw ObjectDisposedException.
This method can also be used in situations where the managed instances for these resources created by the current ResourceManager have to be released deterministically, without waiting for the ResourceManager to go completely out of scope and be garbage collected.
Calling this method does not unload satellite assemblies. To unload satellite assemblies, use Unload.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.