Partilhar via


IVsDataViewHierarchy.InsertItem Method

Definition

Overloads

InsertItem(Int32, String, Int32, Object[])

Inserts the specified node under the specified parent node.

InsertItem(Int32, IVsDataViewSelectionInfo, Int32, Object[])

Inserts the specified node and its child nodes, if any, under the specified parent node.

InsertItem(Int32, String, Int32, Object[])

Inserts the specified node under the specified parent node.

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

Parameters

parentItemId
Int32

The full name of the new node's parent.

typeName
String

The name of the new node's type.

newItemId
Int32

A numerical identifier for the new node to insert.

identifier
Object[]

An array containing identifier parts that represent the new node.

Returns

true if the node was inserted; otherwise, false.

Exceptions

The typeName parameter is null.

Applies to

InsertItem(Int32, IVsDataViewSelectionInfo, Int32, Object[])

Inserts the specified node and its child nodes, if any, under the specified parent node.

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

Parameters

parentItemId
Int32

The full name of the new node's parent.

childSelectionInfo
IVsDataViewSelectionInfo

The selection of child nodes to insert beneath the new node.

newItemId
Int32

A numerical identifier for the new node to insert.

identifier
Object[]

An array containing identifier parts that represent the new node.

Returns

true if the node was inserted; otherwise, false.

Exceptions

The childSelectionInfo parameter is null.

The childSelectionInfo parameter is not a child of the specified parent node.

Applies to