Udostępnij za pośrednictwem


CommandInvocationIntrinsics.CommandNotFoundAction Property

Definition

This event handler is called when a command is not found. If should have a single string parameter that is the name of the command and should return a CommandInfo object or null. By default it will search the module path looking for a module that exports the desired command.

public:
 property EventHandler<System::Management::Automation::CommandLookupEventArgs ^> ^ CommandNotFoundAction { EventHandler<System::Management::Automation::CommandLookupEventArgs ^> ^ get(); void set(EventHandler<System::Management::Automation::CommandLookupEventArgs ^> ^ value); };
public EventHandler<System.Management.Automation.CommandLookupEventArgs> CommandNotFoundAction { get; set; }
member this.CommandNotFoundAction : EventHandler<System.Management.Automation.CommandLookupEventArgs> with get, set
Public Property CommandNotFoundAction As EventHandler(Of CommandLookupEventArgs)

Property Value

Applies to