PSCmdlet Class
Definition
Defines members used by Cmdlets. All Cmdlets must derive from Cmdlet.
public abstract class PSCmdlet : System.Management.Automation.Cmdlet
- Inheritance
- Derived
Inherited Members
System.Management.Automation.Cmdlet
System.Management.Automation.Internal.InternalCommand
Remarks
Do not attempt to create instances of Cmdlet or its subclasses. Instead, derive your own subclasses and mark them with CmdletAttribute, and when your assembly is included in a shell, the Engine will take care of instantiating your subclass.
Constructors
| PSCmdlet() |
Initializes the new instance of PSCmdlet class. |
Properties
| Events |
Gets the event manager for the current runspace. |
| Host |
Gets the host interaction APIs. |
| InvokeCommand |
Provides access to utility routines for executing scripts and creating script blocks. |
| InvokeProvider |
Gets the instance of the provider interface APIs for the current runspace. |
| JobManager |
Manager for JobSourceAdapters registered. |
| JobRepository |
Repostiory for jobs |
| MyInvocation |
Contains information about the identity of this cmdlet and how it was invoked. |
| PagingParameters |
If the cmdlet declares paging support (via SupportsPaging),
then PagingParameters property contains arguments of the paging parameters.
Otherwise PagingParameters property is |
| ParameterSetName |
The name of the parameter set in effect. |
| SessionState |
Gets the instance of session state for the current runspace. |
Methods
| CurrentProviderLocation(String) | |
| GetResolvedProviderPathFromPSPath(String, ProviderInfo) | |
| GetUnresolvedProviderPathFromPSPath(String) | |
| GetVariableValue(String) | |
| GetVariableValue(String, Object) |