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






new DirectoryEntry()

  
using System;
using System.DirectoryServices;


public class MainClass
{
  public static int Main(string[] args)
  {
    DirectoryEntry MyDirectoryObject = new DirectoryEntry();
    
    MyDirectoryObject.Path = "LDAP://HMSRevenge/rootDSE";
    MyDirectoryObject.Username = @"userName\AAAA";
    MyDirectoryObject.Password = @"MyPassword";

    DirectoryEntries MyChildObjects = MyDirectoryObject.Children;

    return 0;  
  }
}

   
    
  








Related examples in the same category

1.new DirectoryEntry(String connection)
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