DirectoryEntry Constructor (String, String, String, AuthenticationTypes)

 
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 DirectoryEntry class.

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

Public Sub New (
	path As String,
	username As String,
	password As String,
	authenticationType As AuthenticationTypes
)

Parameters

path
Type: System.String

The path of this DirectoryEntry. The Path property is initialized to this value.

username
Type: System.String

The user name to use when authenticating the client. The Username property is initialized to this value.

password
Type: System.String

The password to use when authenticating the client. The Password property is initialized to this value.

authenticationType
Type: System.DirectoryServices.AuthenticationTypes

One of the AuthenticationTypes values. The AuthenticationType property is initialized to this value.

.NET Framework
Available since 1.1
Return to top
Show: