CommandMetadata
Class
Definition
This class represents the compiled metadata for a command type.
public sealed class CommandMetadata
- Inheritance
-
CommandMetadata
Constructors
| CommandMetadata(CommandInfo) |
Construct a CommandMetadata object for the given commandInfo |
| CommandMetadata(CommandMetadata) |
A copy constructor that creates a deep copy of the |
| CommandMetadata(String) |
Construct a CommandMetadata object for a script file. |
| CommandMetadata(Type) |
Constructs a CommandMetada object for the given CLS complaint type
|
| CommandMetadata(CommandInfo, Boolean) |
Construct a CommandMetadata object for the given commandInfo |
Properties
| CommandType |
The Type which this CommandMetadata represents. |
| ConfirmImpact |
Indicates the "destructiveness" of the command operation and when it should be confirmed. This is only effective when the command calls ShouldProcess, which should only occur when SupportsShouldProcess is specified. |
| DefaultParameterSetName |
Gets/Sets the default parameter set name |
| HelpUri |
Related link URI for Get-Help -Online |
| Name |
Gets the name of the command this metadata represents |
| Parameters |
Gets the parameter data for this command |
| PositionalBinding |
When true, the command will auto-generate appropriate parameter metadata to support positional parameters if the script hasn't already specified multiple parameter sets or specified positions explicitly via the ParameterAttribute. |
| RemotingCapability |
The remoting capabilities of this cmdlet, when exposed in a context with ambient remoting. |
| SupportsPaging |
True if the cmdlet declared that it supports Paging, false otherwise. |
| SupportsShouldProcess |
True if the cmdlet declared that it supports ShouldProcess, false otherwise. |
| SupportsTransactions |
True if the cmdlet declared that it supports transactions, false otherwise. |
Methods
| GetRestrictedCommands(SessionCapabilities) |
Returns a dictionary from a command name to CommandMetadata describing
how that command can be restricted to limit attack surface while still being usable
by features included in
|