Share via


CommandPrediction.OnCommandLineExecuted Method

Definition

Allow registered predictors to know the execution result (success/failure) of the last accepted command line.

public static void OnCommandLineExecuted (System.Management.Automation.Subsystem.Prediction.PredictionClient client, string commandLine, bool success);
static member OnCommandLineExecuted : System.Management.Automation.Subsystem.Prediction.PredictionClient * string * bool -> unit
Public Shared Sub OnCommandLineExecuted (client As PredictionClient, commandLine As String, success As Boolean)

Parameters

client
PredictionClient

Represents the client that initiates the call.

commandLine
String

The last accepted command line.

success
Boolean

Whether the execution of the last command line was successful.

Applies to