WindowsTaskCredentials(String, String, SecureString) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.