共用方式為


SuggestionServiceBase 類別

定義

用於註冊 SuggestionProviderBaseITextViewMEF匯出。

public abstract class SuggestionServiceBase
type SuggestionServiceBase = class
Public MustInherit Class SuggestionServiceBase
繼承
SuggestionServiceBase

備註

這是MEF匯出。

這是 Visual Studio 所實作的單一。

建構函式

SuggestionServiceBase()

用於註冊 SuggestionProviderBaseITextViewMEF匯出。

方法

TryRegisterProviderAsync(SuggestionProviderBase, ITextView, String, CancellationToken)

provider註冊特定 view的 。

TryUpdateProposal(ITextView, ProposalBase)

嘗試更新 proposal 檢視和基礎緩衝區的任何變更。

事件

ProposalDisplayed

每當向用戶顯示提案時引發。

ProposalRejected

每當提案不再顯示時引發 (,但可能會顯示另一個提案,而不需) 關閉建議。

SuggestionAccepted

每當使用者接受提案 (導致建議會話結束) 時引發。

SuggestionDismissed

每當建議會話關閉而不接受提案時引發。

適用於