DirectoryEntry.Close Method ()

 

Closes the DirectoryEntry object and releases any system resources that are associated with this component.

Namespace:   System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

public void Close()

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
Return to top
Show: