Compartilhar via


Interface 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.

Namespace:  Microsoft.VisualStudio.Text.BraceCompletion
Assembly:  Microsoft.VisualStudio.Text.UI (em Microsoft.VisualStudio.Text.UI.dll)

Sintaxe

'Declaração
Public Interface IBraceCompletionSessionProvider
public interface IBraceCompletionSessionProvider
public interface class IBraceCompletionSessionProvider
type IBraceCompletionSessionProvider =  interface end
public interface IBraceCompletionSessionProvider

O tipo IBraceCompletionSessionProvider expõe os membros a seguir.

Métodos

  Nome Descrição
Método público TryCreateSession If appropriate, creates an IBraceCompletionSession based on the language context at the openingPoint.

Superior

Comentários

Exports must include at least one [BracePair] attribute and at least one [ContentType] attribute.

Exemplos

This is a MEF component part, and should be exported with the following attribute:

[Export(typeof(IBraceCompletionSessionProvider))]

Consulte também

Referência

Namespace Microsoft.VisualStudio.Text.BraceCompletion