Partager via


IVsExpansionClient.OnAfterInsertion(IVsExpansionSession) Method

Definition

Called after the code snippet has been inserted and formatted.

public:
 int OnAfterInsertion(Microsoft::VisualStudio::TextManager::Interop::IVsExpansionSession ^ pSession);
public:
 int OnAfterInsertion(Microsoft::VisualStudio::TextManager::Interop::IVsExpansionSession ^ pSession);
int OnAfterInsertion(Microsoft::VisualStudio::TextManager::Interop::IVsExpansionSession const & pSession);
public int OnAfterInsertion (Microsoft.VisualStudio.TextManager.Interop.IVsExpansionSession pSession);
abstract member OnAfterInsertion : Microsoft.VisualStudio.TextManager.Interop.IVsExpansionSession -> int
Public Function OnAfterInsertion (pSession As IVsExpansionSession) As Integer

Parameters

pSession
IVsExpansionSession

[in] An IVsExpansionSession object containing information about the code snippet that has just been inserted. This can be a null value.

Returns

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.

Applies to