Compartilhar via


IVsHierarchyDeleteHandler2.ShowSpecificDeleteRemoveMessage Method

Definition

Shows a specific delete or remove message.

public:
 int ShowSpecificDeleteRemoveMessage(System::UInt32 dwDelItemOps, System::UInt32 cDelItems, cli::array <System::UInt32> ^ rgDelItems, [Runtime::InteropServices::Out] int % pfShowStandardMessage, [Runtime::InteropServices::Out] System::UInt32 % pdwDelItemOp);
int ShowSpecificDeleteRemoveMessage(unsigned int dwDelItemOps, unsigned int cDelItems, std::Array <unsigned int> const & rgDelItems, [Runtime::InteropServices::Out] int & pfShowStandardMessage, [Runtime::InteropServices::Out] unsigned int & pdwDelItemOp);
public int ShowSpecificDeleteRemoveMessage (uint dwDelItemOps, uint cDelItems, uint[] rgDelItems, out int pfShowStandardMessage, out uint pdwDelItemOp);
abstract member ShowSpecificDeleteRemoveMessage : uint32 * uint32 * uint32[] * int * uint32 -> int
Public Function ShowSpecificDeleteRemoveMessage (dwDelItemOps As UInteger, cDelItems As UInteger, rgDelItems As UInteger(), ByRef pfShowStandardMessage As Integer, ByRef pdwDelItemOp As UInteger) As Integer

Parameters

dwDelItemOps
UInt32

[in] A value from the __VSDELETEITEMOPERATION enumeration.

cDelItems
UInt32

[in]The number of items in rgDelItems

rgDelItems
UInt32[]

[in] Array of VSITEMID values indicating items to delete from the project.

pfShowStandardMessage
Int32

[out] Set to true if the shell is to ignore pdwDelItemOp and shows the standard message.

pdwDelItemOp
UInt32

[out] Set to DELITEMOP_DeleteFromStorage or DELITEMOP_RemoveFromProject if delete or remove allowed.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsHierarchyDeleteHandler2::ShowSpecificDeleteRemoveMessage(  
   [in] DWORD dwDelItemOps,   
   [in] ULONG cDelItems,   
   [in, size_is(cDelItems)] VSITEMID rgDelItems[],   
   [out] BOOL *pfShowStandardMessage,   
   [out] VSDELETEITEMOPERATION *pdwDelItemOp  
);  

Notes for Callers

If the project returns true in pfShowStandardMessage, any value in pdwDelItemOp is ignored.

Applies to