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
- 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.