CommandInfo Members

Serves as a base class for information classes that describe cmdlets, functions, scripts, and other types of commands.

The following tables list the members exposed by the CommandInfo type.

  Name Description
public property CommandType Gets the Windows PowerShell defined type of the command, such as a cmdlet, function, filter, or script.
public property Definition When overridden in a derived class, gets the definition of the command.
public property Module Gets information about the module that defines this command. This property is introduced in Windows PowerShell 2.0.
public property ModuleName Gets the name of the module that defines the command. This property is introduced in Windows PowerShell 2.0.
public property Name Gets the name of the command.
public property OutputType When overridden in a derived class, gets the .NET Framework types returned by the command.
public property Parameters When overridden in a derived class, gets the parameters of the command. This property is introduced in Windows PowerShell 2.0.
public property ParameterSets Gets information about the parameter sets associated with the command. This property is introduced in Windows PowerShell 2.0.
public property RemotingCapability Gets the remoting capabilities of this cmdlet when exposed in a context with ambient remoting. Introduced in Windows PowerShell 3.0.
public property Source  
public property Version  
public property Visibility When overridden in a derived class, gets or sets a constant that identifies whether the element is visible outside the runspace. For example, an element can be a private member of a module and therefore not visible to commands, such as pipeline commands, that are coming from outside the runspace. This property is introduced in Windows PowerShell 2.0.
Top

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodResolveParameterResolves a full, shortened, or aliased parameter name to the actual cmdlet parameter name, using the parameter resolution algorithm in Windows PowerShell. Introduced in Windows PowerShell 3.0.
public methodToStringOverridden. Converts the information object of the derived class to a string.
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top


Show: