다음을 통해 공유


IVsExpansionClient.OnBeforeInsertion Method

Called before the code snippet has been inserted.

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

Syntax

‘선언
Function OnBeforeInsertion ( _
    pSession As IVsExpansionSession _
) As Integer
‘사용 방법
Dim instance As IVsExpansionClient
Dim pSession As IVsExpansionSession
Dim returnValue As Integer

returnValue = instance.OnBeforeInsertion(pSession)
int OnBeforeInsertion(
    IVsExpansionSession pSession
)
int OnBeforeInsertion(
    IVsExpansionSession^ pSession
)
abstract OnBeforeInsertion : 
        pSession:IVsExpansionSession -> int 
function OnBeforeInsertion(
    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::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.

.NET Framework Security

See Also

Reference

IVsExpansionClient Interface

IVsExpansionClient Members

Microsoft.VisualStudio.TextManager.Interop Namespace