IVsSupportItemHandoff2.OnBeforeHandoffItem(UInt32, IVsProject3) 方法

定义

允许对文档进行预处理, (主要将无标题文档保存到目标项目) 的目录中。

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

参数

itemid
UInt32

中项目中将删除文档的项标识符。

pProjDest
IVsProject3

中文档将传输到的项目。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshel80:

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

适用于