Share via


InvokePowerShell Members

Include Protected Members
Include Inherited Members

Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Activity that invokes a PowerShell command.

The InvokePowerShell type exposes the following members.

Constructors

  Name Description
Public method InvokePowerShell Creates a new instance of the InvokePowerShell class.

Top

Methods

  Name Description
Protected method CreateBody When implemented in a derived class, returns the execution logic for the activity that consists of the WorkflowElement object that makes up the activity’s functionality. (Inherited from Activity.)
Public method EnsureExtensions Called by the workflow host to allow the workflow to update the extensions collection before execution. (Inherited from WorkflowElement.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetArguments Returns a collection of RuntimeArgument objects for the WorkflowElement. (Inherited from WorkflowElement.)
Public method GetChildren Returns a collection of WorkflowElement objects that are direct children of the WorkflowElement. (Inherited from WorkflowElement.)
Public method GetConstraints Returns a collection of Constraint activities that are configured to provide validation for the WorkflowElement. (Inherited from WorkflowElement.)
Public method GetDelegates Returns a collection of ActivityDelegate objects for the WorkflowElement. (Inherited from WorkflowElement.)
Public method GetEnvironmentVariables Returns a collection of Variable objects that represents the variables defined at this activity’s scope. (Inherited from WorkflowElement.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnGetArguments Supplies a list of RuntimeArgument objects for the WorkflowElement. (Inherited from WorkflowElement.)
Protected method OnOpen Called when the WorkflowElement is opened. (Inherited from WorkflowElement.)
Public method ShouldSerializeDisplayName Indicates whether the DisplayName property should be serialized. (Inherited from WorkflowElement.)
Protected method ThrowIfOpen Throws an InvalidOperationException if the WorkflowElement has been prepared for execution. (Inherited from WorkflowElement.)
Public method ToString Returns a String that contains the Id and DisplayName of the WorkflowElement. (Inherited from WorkflowElement.)

Top

Properties

  Name Description
Public property Body Gets or sets the function that produces the WorkflowElement object that makes up the activity’s functionality when used by the default CreateBody() implementation. (Inherited from Activity.)
Public property CommandText The text of the command to be executed in the PowerShell environment.
Public property Constraints Gets a collection of Constraint activities that can be configured to provide validation for the Activity. (Inherited from Activity.)
Public property DisplayName Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking. (Inherited from WorkflowElement.)
Public property Errors Collection of errors returned by the PowerShell command.
Public property Id Gets an identifier that is unique in the scope of the workflow definition. (Inherited from WorkflowElement.)
Public property Input A collection of objects to be passed into the input pipeline.
Protected property IsOpen Gets a value that indicates whether the WorkflowElement has been prepared for execution. (Inherited from WorkflowElement.)
Public property IsScript A value that indicates whether the command is to be executed as a PowerShell script.
Public property Parameters Dictionary of parameter names and InArgument objects to be passed to the command.
Public property PowerShellVariables Dictionary of variable names and Argument objects to specify binding between workflow data and PowerShell variables.

Top

See Also

Reference

InvokePowerShell Class

System.Management.Automation.Activities Namespace