Partager via


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

Ajoute le nœud spécifié à la file d'attente des nœuds à insérer à une date ultérieure, si le nœud parent n'a pas encore été développé ou n'est pas créé. Sinon, insère le nœud immédiatement 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 DelayInsertItem ( _
    parentFullName As String, _
    childSelectionInfo As IVsDataViewSelectionInfo, _
    newItemId As Integer, _
    identifier As Object() _
) As Boolean
bool DelayInsertItem(
    string parentFullName,
    IVsDataViewSelectionInfo childSelectionInfo,
    int newItemId,
    Object[] identifier
)
bool DelayInsertItem(
    String^ parentFullName, 
    IVsDataViewSelectionInfo^ childSelectionInfo, 
    int newItemId, 
    array<Object^>^ identifier
)
abstract DelayInsertItem : 
        parentFullName:string * 
        childSelectionInfo:IVsDataViewSelectionInfo * 
        newItemId:int * 
        identifier:Object[] -> bool
function DelayInsertItem(
    parentFullName : String, 
    childSelectionInfo : IVsDataViewSelectionInfo, 
    newItemId : int, 
    identifier : Object[]
) : boolean

Paramètres

  • parentFullName
    Type : String

    Le nom complet du nouveau parent du 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 nouveau nœud est inséré immédiatement ; false si le nouveau nœud est placé dans la file d'attente pour l'insertion différée ou n'est pas insérées immédiatement.

Exceptions

Exception Condition
ArgumentNullException

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

Notes

Cette méthode améliore les performances parce que le nouveau nœud est inséré uniquement lorsque le nœud parent est développé, réduisant ainsi le nombre d'énumérations exécutées sur l'arborescence.

Sécurité .NET Framework

Voir aussi

Référence

IVsDataViewHierarchy Interface

DelayInsertItem, surcharge

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