CommandLookupEventArgs Class

Definition

EventArgs for the ScriptCmdletVariableUpdate event

public class CommandLookupEventArgs : EventArgs
Inheritance
CommandLookupEventArgs

Properties

Command

The CommandInfo obejct for the command that was found.

CommandName

The name of the command we're looking for

CommandOrigin

The origin of the command internal or runspace (external)

CommandScriptBlock

Scriptblock to be returned as the found command. If it is set to null, then the command to return and the StopSearch flag will be reset.

StopSearch

If true on return from event handler, the search is stopped.