SuggestionSessionBase.CommitSuggestion(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
認可建議 (,就像使用者已接受建議) 一樣。
public virtual bool CommitSuggestion (bool commitIntelliSense);
abstract member CommitSuggestion : bool -> bool
override this.CommitSuggestion : bool -> bool
Public Overridable Function CommitSuggestion (commitIntelliSense As Boolean) As Boolean
參數
- commitIntelliSense
- Boolean
如果 IntelliSense 為作用中,請先認可 IntelliSense 選取專案,再認可建議。
傳回
如果應封鎖後續的命令處理,則為 True。
備註
目前定義為虛擬,以避免使用 IntelliCode 的組建中斷。 即將變更為抽象。
如果未顯示提案,則會傳回 false。
必須從UI線程呼叫。