Partager via


CredentialAttribute.Transform(EngineIntrinsics, Object) Method

Definition

Transforms the input data to an PSCredential.

public:
 override System::Object ^ Transform(System::Management::Automation::EngineIntrinsics ^ engineIntrinsics, System::Object ^ inputData);
public override object Transform (System.Management.Automation.EngineIntrinsics engineIntrinsics, object inputData);
override this.Transform : System.Management.Automation.EngineIntrinsics * obj -> obj
Public Overrides Function Transform (engineIntrinsics As EngineIntrinsics, inputData As Object) As Object

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