Share via


IVsSupportItemHandoff2.OnBeforeHandoffItem(UInt32, IVsProject3) Method

Definition

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

public:
 int OnBeforeHandoffItem(System::UInt32 itemid, Microsoft::VisualStudio::Shell::Interop::IVsProject3 ^ pProjDest);
public:
 int OnBeforeHandoffItem(unsigned int itemid, Microsoft::VisualStudio::Shell::Interop::IVsProject3 ^ pProjDest);
int OnBeforeHandoffItem(unsigned int itemid, Microsoft::VisualStudio::Shell::Interop::IVsProject3 const & pProjDest);
public int OnBeforeHandoffItem (uint itemid, Microsoft.VisualStudio.Shell.Interop.IVsProject3 pProjDest);
abstract member OnBeforeHandoffItem : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsProject3 -> int
Public Function OnBeforeHandoffItem (itemid As UInteger, pProjDest As IVsProject3) As Integer

Parameters

itemid
UInt32

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

pProjDest
IVsProject3

[in] The project to which the document will be transferred.

Returns

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  
);  

Applies to