WindowsTaskCredentials(String, String, SecureString) Constructor

Definition

Creates a new instance of WindowsTaskCredentials.

public:
 WindowsTaskCredentials(System::String ^ domain, System::String ^ username, System::Security::SecureString ^ password);
public WindowsTaskCredentials (string domain, string username, System.Security.SecureString password);
new Microsoft.EnterpriseManagement.Runtime.WindowsTaskCredentials : string * string * System.Security.SecureString -> Microsoft.EnterpriseManagement.Runtime.WindowsTaskCredentials
Public Sub New (domain As String, username As String, password As SecureString)

Parameters

domain
String

A string containing the domain of the user.

username
String

The user name.

password
SecureString

A SecureString that contains the password.

Exceptions

Thrown when any of the arguments are null.

Thrown when the user name argument is empty.

Applies to