Compartilhar via


ExpansionProvider.OnAfterInsertion Method

Called after a snippet has been inserted into the source.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Overridable Function OnAfterInsertion ( _
    session As IVsExpansionSession _
) As Integer
public virtual int OnAfterInsertion(
    IVsExpansionSession session
)
public:
virtual int OnAfterInsertion(
    IVsExpansionSession^ session
)
abstract OnAfterInsertion : 
        session:IVsExpansionSession -> int  
override OnAfterInsertion : 
        session:IVsExpansionSession -> int
public function OnAfterInsertion(
    session : IVsExpansionSession
) : int

Parameters

Return Value

Type: Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsExpansionClient.OnAfterInsertion(IVsExpansionSession)

Remarks

The snippet has been inserted and the expansion editing is active.

This method is an implementation of the OnAfterInsertion method on the IVsExpansionClient interface.

The base method does nothing.

.NET Framework Security

See Also

Reference

ExpansionProvider Class

Microsoft.VisualStudio.Package Namespace