Creates and initializes a new instance of the CimCredential class based on an authentication mechanism, domain, username, and password.
Namespace:   Microsoft.Management.Infrastructure.Options
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)
Syntax
public CimCredential(
    string authenticationMechanism,
    string domain,
    string userName,
    SecureString password
)
public:
CimCredential(
    String^ authenticationMechanism,
    String^ domain,
    String^ userName,
    SecureString^ password
)
new : 
        authenticationMechanism:string *
        domain:string *
        userName:string *
        password:SecureString -> CimCredential
Public Sub New (
    authenticationMechanism As String,
    domain As String,
    userName As String,
    password As SecureString
)
Parameters
authenticationMechanism
Type: System.StringThe authentication mechanism.
domain
Type: System.StringThe domain.
userName
Type: System.StringThe user name.
password
Type: System.Security.SecureStringThe password for the specified user.
See Also
CimCredential Overload
CimCredential Class
Microsoft.Management.Infrastructure.Options Namespace
Return to top