ProposalSourceBase.RequestProposalsAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
ProposalCollectionBase傳回 ,其中包含任何可能遵循caret
指定 completionState
之、 scenario
和 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)
參數
- caret
- VirtualSnapshotPoint
- completionState
- CompletionState
- scenario
- ProposalScenario
- triggeringCharacter
- Char
- cancel
- CancellationToken
傳回
使用者可能想要之項目的建議。 可以傳回 null。
備註
也可以傳回 LazyProposalCollectionBase ,以允許在 之後 Proposals產生其他提案。