Export (0) Print
Expand All

DirectoryContext Constructor

Initializes a new instance of the DirectoryContext class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method DirectoryContext(DirectoryContextType) Initializes a new instance of the DirectoryContext class of the specified type that contains the credentials of the current user context.
Public method DirectoryContext(DirectoryContextType, String) Initializes a new instance of the DirectoryContext class of the specified type that contains the specified name and the credentials of the current user context.
Public method DirectoryContext(DirectoryContextType, String, String) Initializes a new instance of the DirectoryContext class of the specified type that contains the specified user name and password.
Public method DirectoryContext(DirectoryContextType, String, String, String) Initializes a new instance of the DirectoryContext class of the specified type that contains the specified target, user name, and password.
Top
Show:
© 2014 Microsoft