Método IVsSimpleBrowseComponentSet.AddComponent (Guid, VSCOMPONENTSELECTORDATA[], IVsNavInfo, VSCOMPONENTSELECTORDATA )
Adiciona um componente a um conjunto de componentes.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (em Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Sintaxe
int AddComponent(
[InAttribute] ref Guid guidLib,
VSCOMPONENTSELECTORDATA[] pcsdComponent,
out IVsNavInfo ppRealLibNavInfo,
VSCOMPONENTSELECTORDATA[] pcsdAddedComponent
)
int AddComponent(
[InAttribute] Guid% guidLib,
array<VSCOMPONENTSELECTORDATA>^ pcsdComponent,
[OutAttribute] IVsNavInfo^% ppRealLibNavInfo,
array<VSCOMPONENTSELECTORDATA>^ pcsdAddedComponent
)
abstract AddComponent :
guidLib:Guid byref *
pcsdComponent:VSCOMPONENTSELECTORDATA[] *
ppRealLibNavInfo:IVsNavInfo byref *
pcsdAddedComponent:VSCOMPONENTSELECTORDATA[] -> int
Function AddComponent (
<InAttribute> ByRef guidLib As Guid,
pcsdComponent As VSCOMPONENTSELECTORDATA(),
<OutAttribute> ByRef ppRealLibNavInfo As IVsNavInfo,
pcsdAddedComponent As VSCOMPONENTSELECTORDATA()
) As Integer
Parâmetros
- guidLib
[in]O Guid que identifica a biblioteca registrada.
- pcsdComponent
[in] A VSCOMPONENTSELECTORDATA valor que especifica os atributos do componente para localizar.
- ppRealLibNavInfo
[out] A IVsNavInfo interface dos componentes encontrados.
- pcsdAddedComponent
[in] A VSCOMPONENTSELECTORDATA valor que especifica os atributos do componente adicionado.
Valor de retorno
Type: System.Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.
Comentários
COM assinatura
De vsshell80.idl:
HRESULT AddComponent(
[in] REFGUID guidLib,
[in] VSCOMPONENTSELECTORDATA * pcsdComponent,
[out] IVsNavInfo ** ppRealLibNavInfo,
[out] VSCOMPONENTSELECTORDATA * pcsdAddedComponent
);
Consulte também
Interface IVsSimpleBrowseComponentSet
Namespace Microsoft.VisualStudio.Shell.Interop
Retornar ao topo