In This Article

ICodeSnippetTemplateSessionEventSink Interface

Provides the base requirements for an object that can be notified of events that occur within an open ICodeSnippetTemplateSession.

public interface ICodeSnippetTemplateSessionEventSink

Remarks

Objects implementing this event sink interface can be registered as a service with an ISyntaxLanguage using the RegisterService(object, object) method. Any object implementing this interface will be notified automatically when related events occur.

Methods

NotifyDeclarationActivated(ICodeSnippetTemplateSession)

Notifies when a new declaration in the session's code snippet is activated.

void NotifyDeclarationActivated(ICodeSnippetTemplateSession session)
Parameter Type Description
session ICodeSnippetTemplateSession

The ICodeSnippetTemplateSession related to this event.

Remarks

The ActiveDeclaration property indicates the related declaration.

NotifyDeclarationDeactivated(ICodeSnippetTemplateSession)

Notifies when a declaration in the session's code snippet is deactivated.

void NotifyDeclarationDeactivated(ICodeSnippetTemplateSession session)
Parameter Type Description
session ICodeSnippetTemplateSession

The ICodeSnippetTemplateSession related to this event.

Remarks

The ActiveDeclaration property indicates the related declaration.

NotifyDeclarationTextChanged(ICodeSnippetTemplateSession)

Notifies when the text value of the active declaration in the session's code snippet is changed.

void NotifyDeclarationTextChanged(ICodeSnippetTemplateSession session)
Parameter Type Description
session ICodeSnippetTemplateSession

The ICodeSnippetTemplateSession related to this event.

Remarks

The ActiveDeclaration property indicates the related declaration.

NotifySessionClosed(ICodeSnippetTemplateSession)

Notifies after a session is closed.

void NotifySessionClosed(ICodeSnippetTemplateSession session)
Parameter Type Description
session ICodeSnippetTemplateSession

The ICodeSnippetTemplateSession related to this event.

NotifySessionOpened(ICodeSnippetTemplateSession)

Notifies after a session is opened.

void NotifySessionOpened(ICodeSnippetTemplateSession session)
Parameter Type Description
session ICodeSnippetTemplateSession

The ICodeSnippetTemplateSession related to this event.

NotifySessionOpening(ICodeSnippetTemplateSession)

Notifies before a session is opened.

void NotifySessionOpening(ICodeSnippetTemplateSession session)
Parameter Type Description
session ICodeSnippetTemplateSession

The ICodeSnippetTemplateSession related to this event.