Freigeben über


IVsExpansionClient.OnAfterInsertion Method

Called after the code snippet has been inserted and formatted.

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

Syntax

'Declaration
Function OnAfterInsertion ( _
    pSession As IVsExpansionSession _
) As Integer
int OnAfterInsertion(
    IVsExpansionSession pSession
)
int OnAfterInsertion(
    IVsExpansionSession^ pSession
)
abstract OnAfterInsertion : 
        pSession:IVsExpansionSession -> int
function OnAfterInsertion(
    pSession : IVsExpansionSession
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr2.idl:

HRESULT IVsExpansionClient::OnAfterInsertion(
   IVsExpansionSession *pSession
);

This method is called after the code snippet has been inserted and formatted but before the special editing mode for code snippets is enabled. If the IVsExpansionSession object is given, use it only to gather information about the code snippet that was just inserted or to override default field values. The remaining methods are solely for use by the special editing mode.

.NET Framework Security

See Also

Reference

IVsExpansionClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace