LdapDirectoryConnection.SetCredentials method

Set credentials that will be used to access the connection.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
Public Sub SetCredentials ( _
    username As String, _
    password As SecureString _
)
'Usage
Dim instance As LdapDirectoryConnection
Dim username As String
Dim password As SecureString

instance.SetCredentials(username, password)
public void SetCredentials(
    string username,
    SecureString password
)

Parameters

See also

Reference

LdapDirectoryConnection class

LdapDirectoryConnection members

Microsoft.Office.Server.UserProfiles namespace