This documentation is archived and is not being maintained.

DirectoryServer.Dispose Method (Boolean)

Releases all unmanaged resources and, optionally, all managed resources that are used by the object.

Namespace: System.DirectoryServices.ActiveDirectory
Assembly: System.DirectoryServices (in system.directoryservices.dll)

protected virtual void Dispose (
	bool disposing
protected void Dispose (
	boolean disposing
protected function Dispose (
	disposing : boolean
Not applicable.



Determines if the managed resources should be released. true if the managed resources are released; false if the managed resources are not released.

The disposing parameter affects only the release of the managed resources. The unmanaged resources are always released by this method.

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 Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0