Windows Dev Center

CommandInvocationIntrinsics Members

Provides access to methods that cmdlets can use to build and run scripts.

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

  Name Description
public property CommandNotFoundAction Gets or sets the event handler that is called when a command is not found. Introduced in Windows PowerShell 3.0.
public property HasErrors Gets or sets a value that indicates whether an error occurred while executing the cmdlet. Introduced in Windows PowerShell 3.0.
public property PostCommandLookupAction Gets or sets the event handler that is called after the command lookup is done but before the event object is returned to the caller, to allow other events, such as interning scripts, to work correctly. Introduced in Windows PowerShell 3.0.
public property PreCommandLookupAction Gets or sets the event handler that is called before the command lookup is done. Introduced in Windows PowerShell 3.0.
Top

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodExpandStringExpands a specified string.
public methodGetCmdletRetrieves information about the specified cmdlet. This method is introduced in Windows PowerShell 2.0.
public methodGetCmdletByTypeNameRetrieves information about a cmdlet by using the name of the cmdlet's implementing type. Introduced in Windows PowerShell 3.0.
public methodGetCmdletsOverloaded. Retrieves a list of all cmdlets available to the script. The variants of this method can retrieve all cmdlets or only those that match a specified pattern. This method is introduced in Windows PowerShell 2.0.
public methodGetCommandRetrieves information about a specific command available to the script. This method is introduced in Windows PowerShell 2.0.
public methodGetCommandNameRetrieves the names of the commands that are available to the script. This method is introduced in Windows PowerShell 2.0.
public methodGetCommandsRetrieves Windows PowerShell commands based on name and command type information. Introduced in Windows PowerShell 3.0.
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodInvokeScriptOverloaded. Runs a script synchronously. The variants of this method can run the script by itself, with its required arguments, in a specified runspace, in a new scope, and with specified execution options. Introduced in Windows PowerShell 3.0.
public methodNewScriptBlockCreates a script block based on a specified string.
public methodToString  (Inherited from Object)
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:
© 2015 Microsoft