CredentialAttribute.Transform(EngineIntrinsics, Object) Method

Definition

Transforms the input data to an PSCredential.

C++
public:
 override System::Object ^ Transform(System::Management::Automation::EngineIntrinsics ^ engineIntrinsics, System::Object ^ inputData);

Parameters

engineIntrinsics
EngineIntrinsics

The engine APIs for the context under which the transformation is being made.

inputData
Object

If Null, the transformation prompts for both Username and Password If a string, the transformation uses the input for a username, and prompts for a Password If already an PSCredential, the transform does nothing.

Returns

An PSCredential object representing the inputData.

Applies to

Proizvod Verzije
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0