共用方式為


ProposalSourceBase.RequestProposalsAsync 方法

定義

ProposalCollectionBase傳回 ,其中包含任何可能遵循caret指定 completionState之、 scenariotriggeringCharacter的建議。

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)

參數

completionState
CompletionState
scenario
ProposalScenario
triggeringCharacter
Char

傳回

使用者可能想要之項目的建議。 可以傳回 null。

備註

也可以傳回 LazyProposalCollectionBase ,以允許在 之後 Proposals產生其他提案。

適用於