PSConsoleReadLineOptions.CommandValidationHandler Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)