Partager via


CimCredential Constructor (PasswordAuthenticationMechanism, String, String, SecureString)

 

Creates and initializes a new instance of the CimCredential class based on a password authentication mechanism, domain, username, and password.

Namespace:   Microsoft.Management.Infrastructure.Options
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Syntax

public CimCredential(
    PasswordAuthenticationMechanism authenticationMechanism,
    string domain,
    string userName,
    SecureString password
)
public:
CimCredential(
    PasswordAuthenticationMechanism authenticationMechanism,
    String^ domain,
    String^ userName,
    SecureString^ password
)
new : 
        authenticationMechanism:PasswordAuthenticationMechanism *
        domain:string *
        userName:string *
        password:SecureString -> CimCredential
Public Sub New (
    authenticationMechanism As PasswordAuthenticationMechanism,
    domain As String,
    userName As String,
    password As SecureString
)

Parameters

See Also

CimCredential Overload
CimCredential Class
Microsoft.Management.Infrastructure.Options Namespace

Return to top