Command Class
Definition
Defines a Command object which can be added to Pipeline object for invocation.
public sealed class Command
- Inheritance
-
Command
Constructors
| Command(String) |
Initializes a new instance of Command class using specified command parameter. |
| Command(String, Boolean) |
Initializes a new instance of Command class using specified command parameter. |
| Command(String, Boolean, Boolean) |
Constructor |
Properties
| CommandText |
Access the command string. |
| IsEndOfStatement |
Checks if the current command marks the end of a statement (see PowerShell.AddStatement()) |
| IsScript |
Access the value indicating if this Command represents a script. |
| MergeUnclaimedPreviousCommandResults |
Sets this command as the mergepoint for previous unclaimed commands' results |
| Parameters |
Gets the set of parameters for this command. |
| UseLocalScope |
Access the value indicating if LocalScope is to be used for running this script command. |
Methods
| MergeMyResults(PipelineResultTypes, PipelineResultTypes) |
Merges this commands resutls |
| ToString() |
for diagnostic purposes |