IVsSupportItemHandoff2::OnBeforeHandoffItem Method (UInt32, IVsProject3^)

 

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)

int OnBeforeHandoffItem(
	unsigned int itemid,
	IVsProject3^ pProjDest
)

Parameters

itemid
Type: System::UInt32

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

pProjDest
Type: Microsoft.VisualStudio.Shell.Interop::IVsProject3^

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

Return Value

Type: System::Int32

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

From vsshel80.idl:

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