PowerShell.Commands Property
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.
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.