SuggestionSessionBase.CommitSuggestion(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Commit the suggestion (as if the user had accepted the suggestion).
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
Parameters
- commitIntelliSense
- Boolean
If IntelliSense is active, commit the IntelliSense selection prior to committing the suggestion.
Returns
True if subsequent command handling should be blocked.
Remarks
Currently defined as virtual to avoid a build break with IntelliCode. Will be changed to abstract soon.
Will return false if no proposal is displayed.
Must be called from the UI thread.