SearchResultCollection.Dispose Method ()
Assembly: System.DirectoryServices (in system.directoryservices.dll)
The Dispose method, it allows the resources that are used by the SearchResultCollection to be reallocated for other purposes. For more information about Dispose, see Cleaning Up Unmanaged Resources.
The garbage collector does not release memory for a SearchResultCollection object. Therefore, an application must call the Dispose method explicitly to prevent a memory leak.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter EditionThe Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.