共用方式為


ExpansionProvider.OnAfterInsertion Method

Called after a snippet has been inserted into the source.

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

Syntax

'宣告
Public Overridable Function OnAfterInsertion ( _
    session As IVsExpansionSession _
) As Integer
'用途
Dim instance As ExpansionProvider
Dim session As IVsExpansionSession
Dim returnValue As Integer

returnValue = instance.OnAfterInsertion(session)
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: 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

See Also

Reference

ExpansionProvider Class

ExpansionProvider Members

Microsoft.VisualStudio.Package Namespace