Baca dalam bahasa Inggris

Bagikan melalui


PSCredential Constructors

Definition

Overloads

PSCredential(PSObject)

Initializes a new instance of the PSCredential class with a username and password from PSObject.

PSCredential(String, SecureString)

Initializes a new instance of the PSCredential class with a username and password.

PSCredential(PSObject)

Initializes a new instance of the PSCredential class with a username and password from PSObject.

public:
 PSCredential(System::Management::Automation::PSObject ^ pso);

Parameters

pso
PSObject

Applies to

PSCredential(String, SecureString)

Initializes a new instance of the PSCredential class with a username and password.

public:
 PSCredential(System::String ^ userName, System::Security::SecureString ^ password);

Parameters

userName
String

User's name.

password
SecureString

User's password.

Applies to