IVsSimpleBrowseComponentSet.AddComponent(Guid, VSCOMPONENTSELECTORDATA[], IVsNavInfo, VSCOMPONENTSELECTORDATA[]) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
- 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
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
);