ProjectNode.RemoveItem Method

Removes an item from the project.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function RemoveItem ( _
    reserved As UInteger, _
    itemId As UInteger, _
    <OutAttribute> ByRef result As Integer _
) As Integer
'使用
Dim instance As ProjectNode
Dim reserved As UInteger
Dim itemId As UInteger
Dim result As Integer
Dim returnValue As Integer

returnValue = instance.RemoveItem(reserved, _
    itemId, result)
public virtual int RemoveItem(
    uint reserved,
    uint itemId,
    out int result
)
public:
virtual int RemoveItem(
    unsigned int reserved, 
    unsigned int itemId, 
    [OutAttribute] int% result
)
public function RemoveItem(
    reserved : uint, 
    itemId : uint, 
    result : int
) : int

Parameters

  • itemId
    Type: System.UInt32

    Identifier of the item to be removed.

  • result
    Type: System.Int32%

    [out] 1 if the item was successfully removed from the project, otherwise 0.

Return Value

Type: System.Int32

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

Implements

IVsProject3.RemoveItem(UInt32, UInt32, Int32%)
IVsProject2.RemoveItem(UInt32, UInt32, Int32%)

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace