IVsExpansionClient.OnBeforeInsertion(IVsExpansionSession) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called before the code snippet has been inserted.
public:
int OnBeforeInsertion(Microsoft::VisualStudio::TextManager::Interop::IVsExpansionSession ^ pSession);
public:
int OnBeforeInsertion(Microsoft::VisualStudio::TextManager::Interop::IVsExpansionSession ^ pSession);
int OnBeforeInsertion(Microsoft::VisualStudio::TextManager::Interop::IVsExpansionSession const & pSession);
public int OnBeforeInsertion (Microsoft.VisualStudio.TextManager.Interop.IVsExpansionSession pSession);
abstract member OnBeforeInsertion : Microsoft.VisualStudio.TextManager.Interop.IVsExpansionSession -> int
Public Function OnBeforeInsertion (pSession As IVsExpansionSession) As Integer
Parameters
- pSession
- IVsExpansionSession
[in] An IVsExpansionSession object containing information about the code snippet that is about to be 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::OnBeforeInsertion(
IVsExpansionSession *pSession
);
This method is called just before the code snippet is about to be inserted. If the IVsExpansionSession object is given, use it only to gather information about the code snippet that is about to be inserted. The remaining methods are solely for use by the special editing mode.