IVsDataViewHierarchy.InsertItem Method (Int32, String, Int32, array<Object )
Inserts the specified node under the specified parent node.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Déclaration
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
Parameters
- parentItemId
Type: System.Int32
The full name of the new node's parent.
- typeName
Type: System.String
The name of the new node's type.
- newItemId
Type: System.Int32
A numerical identifier for the new node to insert.
- identifier
Type: array<System.Object[]
An array containing identifier parts that represent the new node.
Return Value
Type: System.Boolean
true if the node was inserted; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The typeName parameter is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataViewHierarchy Interface
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace