Freigeben über


IVsSupportItemHandoff2.OnBeforeHandoffItem Method

Allows preprocessing of a document to be handed off (primarily saving an untitled document to the directory of the destination project).

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

Syntax

'Declaration
Function OnBeforeHandoffItem ( _
    itemid As UInteger, _
    pProjDest As IVsProject3 _
) As Integer
int OnBeforeHandoffItem(
    uint itemid,
    IVsProject3 pProjDest
)
int OnBeforeHandoffItem(
    [InAttribute] unsigned int itemid, 
    [InAttribute] IVsProject3^ pProjDest
)
abstract OnBeforeHandoffItem : 
        itemid:uint32 * 
        pProjDest:IVsProject3 -> int
function OnBeforeHandoffItem(
    itemid : uint, 
    pProjDest : IVsProject3
) : int

Parameters

  • itemid
    Type: UInt32

    [in] The item identifier in the project where the document will be removed.

Return Value

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

Remarks

COM Signature

From vsshel80.idl:

HRESULT IVsSupportItemHandoff2::OnBeforeHandoffItem(
   [in] VSITEMID itemid, 
   [in] IVsProject3 *pProjDest
);

.NET Framework Security

See Also

Reference

IVsSupportItemHandoff2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace