DirectoryEntry.Close() : DirectoryEntry « System.DirectoryServices « C# / C Sharp by API






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

1.new DirectoryEntry()
2.new DirectoryEntry(String connection)
3.DirectoryEntry.Children
4.DirectoryEntry.CommitChanges()
5.DirectoryEntry.DeleteTree()
6.DirectoryEntry.Password
7.DirectoryEntry.Path
8.DirectoryEntry.Properties
9.DirectoryEntry.Rename(String newName)
10.DirectoryEntry.Username