Partager via


IVsDataViewHierarchy.InsertItem, méthode (Int32, String, Int32, array<Object[])

Insère le nœud spécifié sous le nœud parent spécifié.

Espace de noms :  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly :  Microsoft.VisualStudio.Data.Services (dans Microsoft.VisualStudio.Data.Services.dll)

Syntaxe

'Déclaration
Function InsertItem ( _
    parentItemId As Integer, _
    typeName As String, _
    newItemId As Integer, _
    identifier As Object() _
) As Boolean
bool InsertItem(
    int parentItemId,
    string typeName,
    int newItemId,
    Object[] identifier
)
bool InsertItem(
    int parentItemId, 
    String^ typeName, 
    int newItemId, 
    array<Object^>^ identifier
)
abstract InsertItem : 
        parentItemId:int * 
        typeName:string * 
        newItemId:int * 
        identifier:Object[] -> bool
function InsertItem(
    parentItemId : int, 
    typeName : String, 
    newItemId : int, 
    identifier : Object[]
) : boolean

Paramètres

  • parentItemId
    Type : Int32

    Le nom complet du nouveau parent du nœud.

  • typeName
    Type : String

    Le nom du nouveau type de nœud.

  • newItemId
    Type : Int32

    Un identificateur numérique pour le nouveau nœud insère.

  • identifier
    Type : array<Object[]

    Tableau contenant les parties d'identificateur qui représentent le nouveau nœud.

Valeur de retour

Type : Boolean
true si le nœud est inséré ; sinon, false.

Exceptions

Exception Condition
ArgumentNullException

Le paramètre typeName est nullune référence null (Nothing en Visual Basic).

Sécurité .NET Framework

Voir aussi

Référence

IVsDataViewHierarchy Interface

InsertItem, surcharge

Microsoft.VisualStudio.Data.Services.SupportEntities, espace de noms