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
authenticationMechanism
Type: Microsoft.Management.Infrastructure.Options.PasswordAuthenticationMechanismThe password 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