Condividi tramite


ICommandPredictor.GetSuggestion Method

Definition

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.

Applies to