[Visual Basic] Public Overridable Sub ReleaseAllResources() [C#] public virtual void ReleaseAllResources(); [C++] public: virtual void ReleaseAllResources(); [JScript] public function ReleaseAllResources();
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.
This method can also be used in situations where the .resources files opened by the current ResourceManager have to be released deterministically, without waiting for the ResourceManager to go completely out of scope and be garbage collected.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
.NET Framework Security:
- ReflectionPermission when invoked late-bound through mechanisms such as Type.InvokeMember. Associated enumeration: ReflectionPermissionFlag.MemberAccess.