IVsHierarchyDeleteHandler3.DeleteItems 方法

定义

处理一个或多个层次结构项的删除或移除。

public:
 int DeleteItems(System::UInt32 cItems, System::UInt32 dwDelItemOp, cli::array <System::UInt32> ^ itemid, System::UInt32 dwFlags);
public:
 int DeleteItems(unsigned int cItems, unsigned int dwDelItemOp, Platform::Array <unsigned int> ^ itemid, unsigned int dwFlags);
int DeleteItems(unsigned int cItems, unsigned int dwDelItemOp, std::Array <unsigned int> const & itemid, unsigned int dwFlags);
public int DeleteItems (uint cItems, uint dwDelItemOp, uint[] itemid, uint dwFlags);
abstract member DeleteItems : uint32 * uint32 * uint32[] * uint32 -> int
Public Function DeleteItems (cItems As UInteger, dwDelItemOp As UInteger, itemid As UInteger(), dwFlags As UInteger) As Integer

参数

cItems
UInt32

中要删除或删除的项的数目。

dwDelItemOp
UInt32

中确定是从存储区中删除还是从项目中删除层次结构或层次结构项。 值取自 __VSDELETEITEMOPERATION 枚举。

itemid
UInt32[]

[size_is (cItems) ]层次结构中各项的项标识符的数组。 VSITEMID_ROOT 删除层次结构中的所有内容。 不支持 VSITEMID_SELECTION

dwFlags
UInt32

中提供删除过程的选项。 如果设置为 DHO_SUPPRESS_UI ,则不会显示 (SCC) 签出 UI 的确认对话框或源代码管理。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

适用于