다음을 통해 공유


IAsyncCompletionSession.Commit(Char, CancellationToken) Method

Definition

Commits the currently selected CompletionItem. Must be called on UI thread.

public:
 Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CommitBehavior Commit(char typedChar, System::Threading::CancellationToken token);
public Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CommitBehavior Commit (char typedChar, System.Threading.CancellationToken token);
abstract member Commit : char * System.Threading.CancellationToken -> Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CommitBehavior
Public Function Commit (typedChar As Char, token As CancellationToken) As CommitBehavior

Parameters

typedChar
Char

The text edit which caused this action. May be default(char) when commit was requested by an explcit command (e.g. hitting Tab, Enter or clicking)

token
CancellationToken

Token used to cancel this operation

Returns

Instruction for the editor how to proceed after invoking this method

Applies to