IVsSimpleBrowseComponentSet.AddComponent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a component to a component set.
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
Parameters
- pcsdComponent
- VSCOMPONENTSELECTORDATA[]
[in] A VSCOMPONENTSELECTORDATA value specifying the attributes of component to find.
- ppRealLibNavInfo
- IVsNavInfo
[out] A IVsNavInfo interface of the found components.
- pcsdAddedComponent
- VSCOMPONENTSELECTORDATA[]
[in] A VSCOMPONENTSELECTORDATA value specifying the attributes of the added component.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
HRESULT AddComponent(
[in] REFGUID guidLib,
[in] VSCOMPONENTSELECTORDATA * pcsdComponent,
[out] IVsNavInfo ** ppRealLibNavInfo,
[out] VSCOMPONENTSELECTORDATA * pcsdAddedComponent
);