DirectoryEntry.Password : DirectoryEntry « System.DirectoryServices « C# / C Sharp by API






DirectoryEntry.Password

  
using System;
using System.DirectoryServices;

public class DirectoryBinding
{
  public static int Main(string[] args)
  {
    DirectoryEntry MyDirectoryObject = new DirectoryEntry();
    
    MyDirectoryObject.Path = "LDAP://HMSRevenge/rootDSE";
    MyDirectoryObject.Username = @"Test\yourname";

    MyDirectoryObject.Password = @"MyPassword";

    return 0;

  }
}

   
    
  








Related examples in the same category

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