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
reserved
Type: System.UInt32Reserved for future use.
itemId
Type: System.UInt32Identifier 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.