IVsDataViewHierarchy.DelayInsertItem メソッド (String, String, Int32, array<Object )

親ノードが展開されていない、または作成されて後で挿入するノードのキューに指定したノードを追加します。それ以外の場合、カーソル、指定されたノード。

名前空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
アセンブリ:  Microsoft.VisualStudio.Data.Services (Microsoft.VisualStudio.Data.Services.dll 内)

構文

'宣言
Function DelayInsertItem ( _
    parentFullName As String, _
    typeName As String, _
    newItemId As Integer, _
    identifier As Object() _
) As Boolean
bool DelayInsertItem(
    string parentFullName,
    string typeName,
    int newItemId,
    Object[] identifier
)
bool DelayInsertItem(
    String^ parentFullName, 
    String^ typeName, 
    int newItemId, 
    array<Object^>^ identifier
)
abstract DelayInsertItem : 
        parentFullName:string * 
        typeName:string * 
        newItemId:int * 
        identifier:Object[] -> bool 
function DelayInsertItem(
    parentFullName : String, 
    typeName : String, 
    newItemId : int, 
    identifier : Object[]
) : boolean

パラメーター

  • parentFullName
    型 : System.String
    新しいノードの親の完全名。
  • newItemId
    型 : System.Int32
    挿入する新しいノードの数値識別子。
  • identifier
    型 : array<System.Object[]
    新しいノードを表す識別子のコンポーネントが格納された配列。

戻り値

型 : System.Boolean
true if the new node is inserted immediately; false if the new node is placed in queue for delayed insert or is not inserted immediately.

例外

例外 条件
ArgumentNullException

parentFullName パラメーターまたは typeName パラメーターが nullnull 参照 (Visual Basic では Nothing) です。

解説

このメソッドは、親ノードが展開されているときだけ減らす新しいノードが、ツリーで実行される列挙型の数を挿入するため、パフォーマンスが向上します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

IVsDataViewHierarchy インターフェイス

DelayInsertItem オーバーロード

Microsoft.VisualStudio.Data.Services.SupportEntities 名前空間