IBraceCompletionSessionProvider 介面
An extension point used to create an IBraceCompletionSession for brace completion. A session tracks a set of braces and handles actions performed by the user within the braces to allow for overtyping of the closing brace and additional formatting.
命名空間: Microsoft.VisualStudio.Text.BraceCompletion
組件: Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)
語法
'宣告
Public Interface IBraceCompletionSessionProvider
public interface IBraceCompletionSessionProvider
public interface class IBraceCompletionSessionProvider
type IBraceCompletionSessionProvider = interface end
public interface IBraceCompletionSessionProvider
IBraceCompletionSessionProvider 類型會公開下列成員。
方法
名稱 | 描述 | |
---|---|---|
TryCreateSession | If appropriate, creates an IBraceCompletionSession based on the language context at the openingPoint. |
回頁首
備註
Exports must include at least one [BracePair] attribute and at least one [ContentType] attribute.
範例
This is a MEF component part, and should be exported with the following attribute:
[Export(typeof(IBraceCompletionSessionProvider))]