IVsHierarchyEvents.OnItemDeleted Method
Notifies clients when an item is deleted from the hierarchy.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function OnItemDeleted ( _
itemid As UInteger _
) As Integer
'Uso
Dim instance As IVsHierarchyEvents
Dim itemid As UInteger
Dim returnValue As Integer
returnValue = instance.OnItemDeleted(itemid)
int OnItemDeleted(
uint itemid
)
int OnItemDeleted(
[InAttribute] unsigned int itemid
)
function OnItemDeleted(
itemid : uint
) : int
Parameters
itemid
Type: System.UInt32[in] Identifier of the deleted item. This is the same identifier assigned to the new item by the hierarchy when it is added to the hierarchy.
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 IVsHierarchyEvents::OnItemDeleted(
[in] VSITEMID itemid
);
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.