new DirectoryEntry(String connection) : DirectoryEntry « System.DirectoryServices « C# / C Sharp by API






new DirectoryEntry(String connection)

  

using System;
using System.DirectoryServices;

class MainClass 
{
   public static void Main()
   {
      DirectoryEntry de = new DirectoryEntry("LDAP://192.168.1.100/dc=ispnet1, dc=net");

      string ldappath = de.Path;
      Console.WriteLine("The LDAP path is: {0}", ldappath);
      de.Close();
   }
}

   
    
  








Related examples in the same category

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