Get DirectoryEntry Path : Read : Directory Services C# Examples


C# Examples » Directory Services » Read »

 

Get DirectoryEntry Path









    
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();

      }
}
    
   
  
   



Output

new path: LDAP://192.168.1.100/ou=auditing, dc=accounting, dc=ispnet1, dc=net


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Directory Services
» Read