IVsProject2::RemoveItem Method (UInt32, UInt32, Int32)
Visual Studio 2015
Removes an item from the project.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int RemoveItem( unsigned int dwReserved, unsigned int itemid, [OutAttribute] int% pfResult )
Parameters
- dwReserved
-
Type:
System::UInt32
[in] Reserved for future use.
- itemid
-
Type:
System::UInt32
[in] Identifier of the item to be removed.
- pfResult
-
Type:
System::Int32
[out, retval] true if the item was successfully removed from the project.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsProject2::RemoveItem( [in] DWORD dwReserved, [in] VSITEMID itemid, [out, retval] BOOL * pfResult );
Show: