ICommandPredictor.OnSuggestionDisplayed Method
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.
One or more suggestions provided by the predictor were displayed to the user.
public void OnSuggestionDisplayed (System.Management.Automation.Subsystem.Prediction.PredictionClient client, uint session, int countOrIndex);
public virtual void OnSuggestionDisplayed (System.Management.Automation.Subsystem.Prediction.PredictionClient client, uint session, int countOrIndex);
abstract member OnSuggestionDisplayed : System.Management.Automation.Subsystem.Prediction.PredictionClient * uint32 * int -> unit
abstract member OnSuggestionDisplayed : System.Management.Automation.Subsystem.Prediction.PredictionClient * uint32 * int -> unit
override this.OnSuggestionDisplayed : System.Management.Automation.Subsystem.Prediction.PredictionClient * uint32 * int -> unit
Public Sub OnSuggestionDisplayed (client As PredictionClient, session As UInteger, countOrIndex As Integer)
Public Overridable Sub OnSuggestionDisplayed (client As PredictionClient, session As UInteger, countOrIndex As Integer)
Parameters
- client
- PredictionClient
Represents the client that initiates the call.
- 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.