DirectoryEntry.Close()
using System;
using System.DirectoryServices;
class MainClass
{
public static void Main()
{
DirectoryEntry de2 = new DirectoryEntry("LDAP://192.168.1.100/ou=auditing, dc=accounting, dc=ispnet1, dc=net");
string newpath = de2.Path;
Console.WriteLine("new path: {0}", newpath);
de2.Close();
}
}
Related examples in the same category