CommandInfo Class

Definition

The base class for the information about commands. Contains the basic information about the command, like name and type.

public ref class CommandInfo abstract
public abstract class CommandInfo
type CommandInfo = class
Public MustInherit Class CommandInfo
Inheritance
CommandInfo
Derived

Properties

CommandType

Gets the type of the command.

Definition

A string representing the definition of the command.

Module

The module that defines this cmdlet. This will be null for commands that are not defined in the context of a module.

ModuleName

The module name of this command. It will be empty for commands not imported from either a module or snapin.

Name

Gets the name of the command.

OutputType

A possibly incomplete or even incorrect list of types the command could return.

Parameters

Return the parameters for this command.

ParameterSets

Gets the information about the parameters and parameter sets for this command.

RemotingCapability

The remoting capabilities of this cmdlet, when exposed in a context with ambient remoting.

Source

Gets the source of the command (shown by default in Get-Command)

Version

Gets the source version (shown by default in Get-Command)

Visibility

Indicates if the command is to be allowed to be executed by a request external to the runspace.

Methods

ResolveParameter(String)

Resolves a full, shortened, or aliased parameter name to the actual cmdlet parameter name, using PowerShell's standard parameter resolution algorithm.

ToString()

For diagnostic purposes.

Applies to