DirectoryContext Constructor

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the DirectoryContext class.

Namespace:   System.DirectoryServices.ActiveDirectory
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)

NameDescription
System_CAPS_pubmethodDirectoryContext(DirectoryContextType)

Initializes a new instance of the DirectoryContext class of the specified type that contains the credentials of the current user context.

System_CAPS_pubmethodDirectoryContext(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.

System_CAPS_pubmethodDirectoryContext(DirectoryContextType, String, String)

Initializes a new instance of the DirectoryContext class of the specified type that contains the specified user name and password.

System_CAPS_pubmethodDirectoryContext(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.

Return to top
Show: