IVsDataViewHierarchy.DelayInsertItem 方法 (String, IVsDataViewSelectionInfo, Int32, array<Object )

如果父节点尚未展开或未创建,添加一个指定的节点到后要插入的节点队列。否则,插入指定节点立即。

命名空间:  Microsoft.VisualStudio.Data.Services.SupportEntities
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
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

参数

  • parentFullName
    类型:System.String
    新的节点的父节点的全名。
  • newItemId
    类型:System.Int32
    新的节点一个数字标识符插入。
  • identifier
    类型:array<System.Object[]
    包含表示新节点的标识符部件的数组。

返回值

类型:System.Boolean
true ,如果即时插入新的节点; false,如果新节点在延迟插入的队列放置或不会立即插入。

异常

异常 条件
ArgumentNullException

parentFullName 或 childSelectionInfo 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

备注

对象。

.NET Framework 安全性

请参见

参考

IVsDataViewHierarchy 接口

DelayInsertItem 重载

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空间