CommandLookupEventArgs Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides data for the events associated with command lookup methods in the CommandInvocationIntrinsics class. Introduced in Windows PowerShell 3.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System::Object
  System::EventArgs
    System.Management.Automation::CommandLookupEventArgs

public ref class CommandLookupEventArgs : EventArgs

NameDescription
System_CAPS_pubpropertyCommand

Gets or sets the CommandInfo object for the command that was found. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyCommandName

Gets or sets the name of the command to be found. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyCommandOrigin

Gets the origin of the command (internal) or runspace (external). Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyCommandScriptBlock

Gets or sets the script block to be returned as the found command. If it is set to null, the command to return and the StopSearch flag are reset. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyStopSearch

Gets or sets a value that indicates whether to stop the command lookup upon return from the event handler. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This event data is used in the event handlers assigned to the following properties in the CommandInvocationIntrinsics class:

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: