Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: RunAsUserParams(string, SecureString, bool, string)

Declaration

public RunAsUserParams(
    string username,
    SecureString password,
    bool loadProfile = false,
    string domain = null
)

Summary

Constructor.

Parameters

stringusername The name of the user account under which to run the process.
SecureStringpassword The password for the username account.
boolloadProfile Specifies whether the target process will access the HKCU registry area. Loading the user profile can be time-consuming, so it is optional.
stringdomain ActiveDirectory domain of the required user account.