Freigeben über


PowerShell.Commands Property

Definition

Gets or sets current powershell command line.

public:
 property System::Management::Automation::PSCommand ^ Commands { System::Management::Automation::PSCommand ^ get(); void set(System::Management::Automation::PSCommand ^ value); };
public System.Management.Automation.PSCommand Commands { get; set; }
member this.Commands : System.Management.Automation.PSCommand with get, set
Public Property Commands As PSCommand

Property Value

Exceptions

Cannot set to a null value.

Powershell instance cannot be changed in its current state.

Object is disposed.

Applies to