Compartilhar via


ProposalSourceBase.RequestProposalsAsync Método

Definição

Retorna um ProposalCollectionBase com quaisquer propostas para o que pode seguir os caret especificados completionState, scenario e triggeringCharacter.

public abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Proposals.ProposalCollectionBase?> RequestProposalsAsync (Microsoft.VisualStudio.Text.VirtualSnapshotPoint caret, Microsoft.VisualStudio.Language.Proposals.CompletionState? completionState, Microsoft.VisualStudio.Language.Proposals.ProposalScenario scenario, char triggeringCharacter, System.Threading.CancellationToken cancel);
abstract member RequestProposalsAsync : Microsoft.VisualStudio.Text.VirtualSnapshotPoint * Microsoft.VisualStudio.Language.Proposals.CompletionState * Microsoft.VisualStudio.Language.Proposals.ProposalScenario * char * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Proposals.ProposalCollectionBase>
Public MustOverride Function RequestProposalsAsync (caret As VirtualSnapshotPoint, completionState As CompletionState, scenario As ProposalScenario, triggeringCharacter As Char, cancel As CancellationToken) As Task(Of ProposalCollectionBase)

Parâmetros

completionState
CompletionState
scenario
ProposalScenario
triggeringCharacter
Char

Retornos

As propostas para o que o usuário pode querer. Pode retornar nulo.

Comentários

Também pode retornar um LazyProposalCollectionBase para permitir que propostas adicionais sejam geradas após o Proposals.

Aplica-se a