DirectoryEntry Constructor (String, String, String, AuthenticationTypes)

 

Initializes a new instance of the DirectoryEntry class.

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

new : 
        path:string *
        username:string *
        password:string *
        authenticationType:AuthenticationTypes -> DirectoryEntry

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: