IVsSimpleBrowseComponentSet.AddComponent(Guid, VSCOMPONENTSELECTORDATA[], IVsNavInfo, VSCOMPONENTSELECTORDATA[]) Méthode

Définition

Ajoute un composant à un ensemble de composants.

public:
 int AddComponent(Guid % guidLib, cli::array <Microsoft::VisualStudio::Shell::Interop::VSCOMPONENTSELECTORDATA> ^ pcsdComponent, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsNavInfo ^ % ppRealLibNavInfo, cli::array <Microsoft::VisualStudio::Shell::Interop::VSCOMPONENTSELECTORDATA> ^ pcsdAddedComponent);
public int AddComponent (ref Guid guidLib, Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[] pcsdComponent, out Microsoft.VisualStudio.Shell.Interop.IVsNavInfo ppRealLibNavInfo, Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[] pcsdAddedComponent);
abstract member AddComponent : Guid * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[] * IVsNavInfo * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[] -> int
Public Function AddComponent (ByRef guidLib As Guid, pcsdComponent As VSCOMPONENTSELECTORDATA(), ByRef ppRealLibNavInfo As IVsNavInfo, pcsdAddedComponent As VSCOMPONENTSELECTORDATA()) As Integer

Paramètres

guidLib
Guid

[in] Guid identifiant la bibliothèque inscrite.

pcsdComponent
VSCOMPONENTSELECTORDATA[]

[in] Valeur VSCOMPONENTSELECTORDATA spécifiant les attributs du composant à rechercher.

ppRealLibNavInfo
IVsNavInfo

[out] Interface IVsNavInfo des composants trouvés.

pcsdAddedComponent
VSCOMPONENTSELECTORDATA[]

[in] Valeur VSCOMPONENTSELECTORDATA spécifiant les attributs du composant ajouté.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de vsshell80. idl :

HRESULT AddComponent(  
    [in] REFGUID guidLib,   
    [in] VSCOMPONENTSELECTORDATA * pcsdComponent,  
    [out] IVsNavInfo ** ppRealLibNavInfo,  
    [out] VSCOMPONENTSELECTORDATA * pcsdAddedComponent  
);  

S’applique à