Partilhar via


IVsObjectList.DoDelete(UInt32, UInt32) Method

Definition

Asks the given list item to do the delete operation.

public:
 int DoDelete(System::UInt32 index, System::UInt32 grfFlags);
public:
 int DoDelete(unsigned int index, unsigned int grfFlags);
int DoDelete(unsigned int index, unsigned int grfFlags);
public int DoDelete (uint index, uint grfFlags);
abstract member DoDelete : uint32 * uint32 -> int
Public Function DoDelete (index As UInteger, grfFlags As UInteger) As Integer

Parameters

index
UInt32

[in] Specifies the index of the list item to delete.

grfFlags
UInt32

[in] Values taken from the _VSOBJOPFLAGS enum.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsObjectList::DoDelete(  
   [in] ULONG Index,  
   [in] VSOBJOPFLAGS grfFlags  
);  

The environment calls DoDelete when the user asks to delete the item at index. This method will only be 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 in hr and set the rich error info to indicate the problem that was encountered.

Applies to