IVsDataViewHierarchy.InsertItem 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| InsertItem(Int32, String, Int32, Object[]) |
在指定的父节点下插入指定的节点。 |
| InsertItem(Int32, IVsDataViewSelectionInfo, Int32, Object[]) |
在指定的父节点下插入指定的节点及其子节点(如果有)。 |
InsertItem(Int32, String, Int32, Object[])
在指定的父节点下插入指定的节点。
public:
bool InsertItem(int parentItemId, System::String ^ typeName, int newItemId, cli::array <System::Object ^> ^ identifier);
public bool InsertItem (int parentItemId, string typeName, int newItemId, object[] identifier);
abstract member InsertItem : int * string * int * obj[] -> bool
Public Function InsertItem (parentItemId As Integer, typeName As String, newItemId As Integer, identifier As Object()) As Boolean
参数
- parentItemId
- Int32
新节点的父节点的全名。
- typeName
- String
新节点的类型的名称。
- newItemId
- Int32
要插入的新节点的数值标识符。
- identifier
- Object[]
一个数组,其中包含表示新节点的标识符部分。
返回
如果已插入节点,则为 true;否则为 false。
例外
typeName 参数为 null。
适用于
InsertItem(Int32, IVsDataViewSelectionInfo, Int32, Object[])
在指定的父节点下插入指定的节点及其子节点(如果有)。
public:
bool InsertItem(int parentItemId, Microsoft::VisualStudio::Data::Services::IVsDataViewSelectionInfo ^ childSelectionInfo, int newItemId, cli::array <System::Object ^> ^ identifier);
public bool InsertItem (int parentItemId, Microsoft.VisualStudio.Data.Services.IVsDataViewSelectionInfo childSelectionInfo, int newItemId, object[] identifier);
abstract member InsertItem : int * Microsoft.VisualStudio.Data.Services.IVsDataViewSelectionInfo * int * obj[] -> bool
Public Function InsertItem (parentItemId As Integer, childSelectionInfo As IVsDataViewSelectionInfo, newItemId As Integer, identifier As Object()) As Boolean
参数
- parentItemId
- Int32
新节点的父节点的全名。
- childSelectionInfo
- IVsDataViewSelectionInfo
选择要在新节点下插入的子节点。
- newItemId
- Int32
要插入的新节点的数值标识符。
- identifier
- Object[]
一个数组,其中包含表示新节点的标识符部分。
返回
如果已插入节点,则为 true;否则为 false。
例外
childSelectionInfo 参数为 null。
childSelectionInfo参数不是指定的父节点的子节点。