IVsSimpleBrowseComponentSet::AddComponent Method (Guid, array<VSCOMPONENTSELECTORDATA>^, IVsNavInfo^, array<VSCOMPONENTSELECTORDATA>^)
Visual Studio 2015
Adds a component to a component set.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int AddComponent( [InAttribute] Guid% guidLib, array<VSCOMPONENTSELECTORDATA>^ pcsdComponent, [OutAttribute] IVsNavInfo^% ppRealLibNavInfo, array<VSCOMPONENTSELECTORDATA>^ pcsdAddedComponent )
Parameters
- guidLib
-
Type:
System::Guid
[in]The Guid that identifies the registered library.
- pcsdComponent
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::VSCOMPONENTSELECTORDATA>^
[in] A VSCOMPONENTSELECTORDATA value specifying the attributes of component to find.
- ppRealLibNavInfo
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsNavInfo^
[out] A IVsNavInfo interface of the found components.
- pcsdAddedComponent
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::VSCOMPONENTSELECTORDATA>^
[in] A VSCOMPONENTSELECTORDATA value specifying the attributes of the added component.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT AddComponent(
[in] REFGUID guidLib,
[in] VSCOMPONENTSELECTORDATA * pcsdComponent,
[out] IVsNavInfo ** ppRealLibNavInfo,
[out] VSCOMPONENTSELECTORDATA * pcsdAddedComponent
);
Show: