次の方法で共有


IVsProject3.RemoveItem(UInt32, UInt32, Int32) Method

Definition

Removes an item from the project.

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

Parameters

dwReserved
UInt32

[in] Reserved for future use.

itemid
UInt32

[in] Identifier of the item to be removed.

pfResult
Int32

[out, retval] true if the item was successfully removed from the project.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsProject3::RemoveItem(

[in] DWORD dwReserved,

[in] VSITEMID itemid,

[out, retval] BOOL * pfResult

);

Applies to