CredentialAttribute.Transform(EngineIntrinsics, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.