Partager via


CommandPrediction.OnSuggestionDisplayed Method

Definition

Send feedback to a predictor when one or more suggestions from it were displayed to the user.

public static void OnSuggestionDisplayed (System.Management.Automation.Subsystem.Prediction.PredictionClient client, Guid predictorId, uint session, int countOrIndex);
static member OnSuggestionDisplayed : System.Management.Automation.Subsystem.Prediction.PredictionClient * Guid * uint32 * int -> unit
Public Shared Sub OnSuggestionDisplayed (client As PredictionClient, predictorId As Guid, session As UInteger, countOrIndex As Integer)

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 displayed suggestions came from.

countOrIndex
Int32

When the value is greater than 0, it's the number of displayed suggestions from the list returned in session, starting from the index 0. When the value is less than or equal to 0, it means a single suggestion from the list got displayed, and the index is the absolute value.

Applies to