Partager via


CommandPrediction.OnSuggestionAccepted Method

Definition

Send feedback to a predictor when a suggestion from it was accepted.

public static void OnSuggestionAccepted (System.Management.Automation.Subsystem.Prediction.PredictionClient client, Guid predictorId, uint session, string suggestionText);
static member OnSuggestionAccepted : System.Management.Automation.Subsystem.Prediction.PredictionClient * Guid * uint32 * string -> unit
Public Shared Sub OnSuggestionAccepted (client As PredictionClient, predictorId As Guid, session As UInteger, suggestionText As String)

Parameters

client
PredictionClient

Represents the client that initiates the call.

predictorId
Guid

The identifier of the predictor whose prediction result was accepted.

session
UInt32

The mini-session where the accepted suggestion came from.

suggestionText
String

The accepted suggestion text.

Applies to