DirectoryEntry : Active Directory : Web Services C# Source Code


Custom Search

C# Source Code » Web Services » Active Directory »

 

DirectoryEntry








    

using System;
using System.Collections;
using System.DirectoryServices;

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

      Console.WriteLine(de.Path);
      DirectoryEntries des = de.Children;
      foreach(DirectoryEntry entry in des)
      {
         Console.WriteLine("  child: " + entry.Name);
      }
   }
}



           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Web Services
» Active Directory