指定した親ノードの下に指定したノードと子ノードがある場合、挿入します。
名前空間: Microsoft.VisualStudio.Data.Services.SupportEntities
アセンブリ: Microsoft.VisualStudio.Data.Services (Microsoft.VisualStudio.Data.Services.dll 内)
構文
'宣言
Function InsertItem ( _
parentItemId As Integer, _
childSelectionInfo As IVsDataViewSelectionInfo, _
newItemId As Integer, _
identifier As Object() _
) As Boolean
bool InsertItem(
int parentItemId,
IVsDataViewSelectionInfo childSelectionInfo,
int newItemId,
Object[] identifier
)
bool InsertItem(
int parentItemId,
IVsDataViewSelectionInfo^ childSelectionInfo,
int newItemId,
array<Object^>^ identifier
)
abstract InsertItem :
parentItemId:int *
childSelectionInfo:IVsDataViewSelectionInfo *
newItemId:int *
identifier:Object[] -> bool
function InsertItem(
parentItemId : int,
childSelectionInfo : IVsDataViewSelectionInfo,
newItemId : int,
identifier : Object[]
) : boolean
パラメーター
- parentItemId
型 : System.Int32
新しいノードの親の完全名。
- childSelectionInfo
型 : Microsoft.VisualStudio.Data.Services.IVsDataViewSelectionInfo
新しいノードの下に挿入する子ノードの選択。
- newItemId
型 : System.Int32
パラメーターまたは パラメーターが です。
- identifier
型 : array<System.Object[]
新しいノードを表す識別子のコンポーネントが格納された配列。
戻り値
型 : System.Boolean
ノードが挿入true ; それ以外 false。
例外
| 例外 | 条件 |
|---|---|
| ArgumentNullException | childSelectionInfo パラメーターが nullnull 参照 (Visual Basic では Nothing) です。 |
| ArgumentException | childSelectionInfo のパラメーターは、指定した親ノードの子ではありません。 |
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。