This topic has not yet been rated - Rate this topic

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.
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.
public methodToStringOverridden. Converts the information object of the derived class to a string.
Top
  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
Top

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.