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))]