CommandInfo CommandInfo CommandInfo Class

Definition

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

public abstract class CommandInfo
type CommandInfo = class
    interface IHasSessionStateEntryVisibility
Public MustInherit Class CommandInfo
Inheritance
CommandInfoCommandInfoCommandInfo
Derived

Properties

CommandType CommandType CommandType

Gets the type of the command

Definition Definition Definition

A string representing the definition of the command.

Module Module Module

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

ModuleName ModuleName ModuleName

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

Name Name Name

Gets the name of the command.

OutputType OutputType OutputType

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

Parameters Parameters Parameters

Return the parameters for this command.

ParameterSets ParameterSets ParameterSets

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

RemotingCapability RemotingCapability RemotingCapability

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

Source Source Source

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

Version Version Version

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

Visibility Visibility Visibility

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

Methods

ResolveParameter(String) ResolveParameter(String) ResolveParameter(String)

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

ToString() ToString() ToString()

for diagnostic purposes

Applies to