IVsSimpleObjectList2::DoDelete Method (UInt32, UInt32)
Visual Studio 2015
Asks the given list item to do the delete operation.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Parameters
- index
-
Type:
System::UInt32
[in] Specifies the index of the list item to delete.
- grfFlags
-
Type:
System::UInt32
[in] Values taken from the _VSOBJOPFLAGS enumeration.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsSimpleObjectList2::DoDelete( [in] ULONG Index, [in] VSOBJOPFLAGS grfFlags );
The environment calls DoDelete when the user asks to delete the item at index. This method is only called after CanDelete has been called on the item and has returned true. On a successful deletion DoDelete should return S_OK, if the deletion failed, return the failure as an error and set the rich error info to indicate the problem that was encountered.
Show: