IVsProject3::RemoveItem Method (UInt32, UInt32, Int32)

 

Removes an item from the project.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

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

From vsshell.idl:

HRESULT IVsProject3::RemoveItem(

   [in] DWORD dwReserved,

   [in] VSITEMID itemid,

   [out, retval] BOOL * pfResult

);

Return to top
Show: