IVsProject3.RemoveItem(UInt32, UInt32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从项目中移除一个项。
public:
int RemoveItem(System::UInt32 dwReserved, System::UInt32 itemid, [Runtime::InteropServices::Out] int % pfResult);
int RemoveItem(unsigned int dwReserved, unsigned int itemid, [Runtime::InteropServices::Out] int & pfResult);
public int RemoveItem (uint dwReserved, uint itemid, out int pfResult);
abstract member RemoveItem : uint32 * uint32 * int -> int
Public Function RemoveItem (dwReserved As UInteger, itemid As UInteger, ByRef pfResult As Integer) As Integer
参数
- dwReserved
- UInt32
中保留供将来使用。
- itemid
- UInt32
中要移除的项的标识符。
- pfResult
- Int32
[out,retval] true 如果已成功从项目中移除项,则为。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
实现
注解
COM 签名
从 vsshell:
HRESULT IVsProject3::RemoveItem(
[in] DWORD dwReserved,
[in] VSITEMID itemid,
[out, retval] BOOL * pfResult
);