IVsSimpleBrowseComponentSet::AddComponent Method (Guid, array<VSCOMPONENTSELECTORDATA>^, IVsNavInfo^, array<VSCOMPONENTSELECTORDATA>^)

 

Adds a component to a component set.

Namespace:   Microsoft.VisualStudio.Shell.Interop
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::Int32

If 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
);
Return to top
Show: