Método IVsDataViewHierarchy.InsertItem (Int32, String, Int32, array<Object )
Insere o nó especificado sob o nó pai especificado.
Namespace: Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (em Microsoft.VisualStudio.Data.Services.dll)
Sintaxe
'Declaração
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
Parâmetros
- parentItemId
Tipo: System.Int32
O nome completo do novo pai do nó.
- typeName
Tipo: System.String
O nome do novo tipo de nó.
- newItemId
Tipo: System.Int32
Um identificador numérico para o novo nó insere.
- identifier
Tipo: array<System.Object[]
Uma matriz que contém as partes do identificador que representam o novo nó.
Valor de retorno
Tipo: System.Boolean
true se o nó ser inserido; caso contrário, false.
Exceções
Exceção | Condição |
---|---|
ArgumentNullException | o parâmetro de typeName é nulluma referência nula (Nothing no Visual Basic). |
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiáveis.
Consulte também
Referência
IVsDataViewHierarchy Interface
Namespace Microsoft.VisualStudio.Data.Services.SupportEntities