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

指定した親ノードの下に指定したノードを挿入します。

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

構文

'宣言
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

パラメーター

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

戻り値

型 : System.Boolean
ノードが挿入true ; それ以外 false。

例外

例外 条件
ArgumentNullException

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

.NET Framework セキュリティ

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

参照

関連項目

IVsDataViewHierarchy インターフェイス

InsertItem オーバーロード

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