ActiveDirectoryConnection.SetCredentials Method
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Sub SetCredentials ( _
domain As String, _
username As String, _
password As SecureString _
)
'Usage
Dim instance As ActiveDirectoryConnection
Dim domain As String
Dim username As String
Dim password As SecureString
instance.SetCredentials(domain, username, _
password)
public void SetCredentials(
string domain,
string username,
SecureString password
)
Parameters
- domain
Type: System.String
- username
Type: System.String
- password
Type: System.Security.SecureString
See Also
Reference
ActiveDirectoryConnection Class