Share via


SessionStateProxy.InvokeCommand Property

Definition

Get the APIs to build script blocks and execute script out of session state.

public:
 virtual property System::Management::Automation::CommandInvocationIntrinsics ^ InvokeCommand { System::Management::Automation::CommandInvocationIntrinsics ^ get(); };
public virtual System.Management.Automation.CommandInvocationIntrinsics InvokeCommand { get; }
member this.InvokeCommand : System.Management.Automation.CommandInvocationIntrinsics
Public Overridable ReadOnly Property InvokeCommand As CommandInvocationIntrinsics

Property Value

Exceptions

Runspace is not open.

Another SessionStateProxy call or another pipeline is in progress.

Applies to