IVsExpansionEvents Interface

Represents a connection point that receives event notifications having to do with code snippets.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("08107089-905F-47AB-989F-E365C5087402")> _
Public Interface IVsExpansionEvents
[InterfaceTypeAttribute()]
[GuidAttribute("08107089-905F-47AB-989F-E365C5087402")]
public interface IVsExpansionEvents
[InterfaceTypeAttribute()]
[GuidAttribute(L"08107089-905F-47AB-989F-E365C5087402")]
public interface class IVsExpansionEvents
[<InterfaceTypeAttribute()>]
[<GuidAttribute("08107089-905F-47AB-989F-E365C5087402")>]
type IVsExpansionEvents =  interface end
public interface IVsExpansionEvents

The IVsExpansionEvents type exposes the following members.

Methods

  Name Description
Public method OnAfterSnippetsKeyBindingChange Called when there is a change in the key binding that is associated with inserting code snippets.
Public method OnAfterSnippetsUpdate Called whenever a folder that contains snippets has been updated and the snippets from that folder have been read in.

Top

Remarks

Obtain the IConnectionPointContainer interface from the IVsExpansionManager interface, and then call the FindConnectionPoint method in the IConnectionPointContainer interface with the interface ID of the IVsExpansionEvents interface to obtain an IConnectionPoint object. Call the Advise method on the IConnectionPoint object with your IVsExpansionEvents interface to begin receiving code snippet-related events.

Notes to Implementers

This interface is implemented on any object that needs to receive notifications of events associated with code snippets.

Notes to Callers

This interface is passed to the Advise method on the IConnectionPoint object that was returned from the FindConnectionPoint method in the IConnectionPointContainer interface.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace