다음을 통해 공유


PSConsoleReadLineOptions.CommandValidationHandler Property

Definition

This handler is called from ValidateAndAcceptLine. If an exception is thrown, validation fails and the error is reported.

public:
 property Action<System::Management::Automation::Language::CommandAst ^> ^ CommandValidationHandler { Action<System::Management::Automation::Language::CommandAst ^> ^ get(); void set(Action<System::Management::Automation::Language::CommandAst ^> ^ value); };
public Action<System.Management.Automation.Language.CommandAst> CommandValidationHandler { get; set; }
member this.CommandValidationHandler : Action<System.Management.Automation.Language.CommandAst> with get, set
Public Property CommandValidationHandler As Action(Of CommandAst)

Property Value

Applies to