ICommandPredictor.GetSuggestion 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.
Get the predictive suggestions. It indicates the start of a suggestion rendering session.
public System.Management.Automation.Subsystem.Prediction.SuggestionPackage GetSuggestion (System.Management.Automation.Subsystem.Prediction.PredictionClient client, System.Management.Automation.Subsystem.Prediction.PredictionContext context, System.Threading.CancellationToken cancellationToken);
abstract member GetSuggestion : System.Management.Automation.Subsystem.Prediction.PredictionClient * System.Management.Automation.Subsystem.Prediction.PredictionContext * System.Threading.CancellationToken -> System.Management.Automation.Subsystem.Prediction.SuggestionPackage
Public Function GetSuggestion (client As PredictionClient, context As PredictionContext, cancellationToken As CancellationToken) As SuggestionPackage
Parameters
- client
- PredictionClient
Represents the client that initiates the call.
- context
- PredictionContext
The PredictionContext object to be used for prediction.
- cancellationToken
- CancellationToken
The cancellation token to cancel the prediction.
Returns
An instance of SuggestionPackage.