ExpansionProvider.OnAfterInsertion Method
Called after a snippet has been inserted into the source.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.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.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Syntax
'Declaração
Public Overridable Function OnAfterInsertion ( _
session As IVsExpansionSession _
) As Integer
public virtual int OnAfterInsertion(
IVsExpansionSession session
)
Parameters
- session
Type: Microsoft.VisualStudio.TextManager.Interop.IVsExpansionSession
[in] An IVsExpansionSession object representing the expansion session that is currently active.
Return Value
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.