DirectoryEntry.Close Method ()

 
System_CAPS_noteNote

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.

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: