Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Removes an item from the project.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function RemoveItem ( _
dwReserved As UInteger, _
itemid As UInteger, _
<OutAttribute> ByRef pfResult As Integer _
) As Integer
'Usage
Dim instance As IVsProject2
Dim dwReserved As UInteger
Dim itemid As UInteger
Dim pfResult As Integer
Dim returnValue As Integer
returnValue = instance.RemoveItem(dwReserved, _
itemid, pfResult)
int RemoveItem(
uint dwReserved,
uint itemid,
out int pfResult
)
int RemoveItem(
[InAttribute] unsigned int dwReserved,
[InAttribute] unsigned int itemid,
[OutAttribute] int% pfResult
)
abstract RemoveItem :
dwReserved:uint32 *
itemid:uint32 *
pfResult:int byref -> int
function RemoveItem(
dwReserved : uint,
itemid : uint,
pfResult : int
) : int
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.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsProject2::RemoveItem(
[in] DWORD dwReserved,
[in] VSITEMID itemid,
[out, retval] BOOL * pfResult
);
.NET Framework Security
- 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.