DirectoryEntry.Close Method ()
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Closes the DirectoryEntry object and releases any system resources that are associated with this component.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
Call this method to release unmanaged system resources, without waiting for garbage collection.
Following a call to Close, any operations on the DirectoryEntry might raise exceptions.
.NET Framework
Available since 1.1
Available since 1.1
Show: