Share via


IVsSimpleBrowseComponentSet.FindComponent Method

Definition

Finds a component in the component set.

public:
 int FindComponent(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> ^ pcsdExistingComponent);
public int FindComponent (ref Guid guidLib, Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[] pcsdComponent, out Microsoft.VisualStudio.Shell.Interop.IVsNavInfo ppRealLibNavInfo, Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[] pcsdExistingComponent);
abstract member FindComponent : Guid * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[] * IVsNavInfo * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORDATA[] -> int
Public Function FindComponent (ByRef guidLib As Guid, pcsdComponent As VSCOMPONENTSELECTORDATA(), ByRef ppRealLibNavInfo As IVsNavInfo, pcsdExistingComponent As VSCOMPONENTSELECTORDATA()) As Integer

Parameters

guidLib
Guid

[in]The Guid that identifies the registered library. Can be GUID_NULL.

pcsdComponent
VSCOMPONENTSELECTORDATA[]

[in] A VSCOMPONENTSELECTORDATA value specifying the attributes of component to find.

ppRealLibNavInfo
IVsNavInfo

[out] A IVsNavInfo interface of the found components.

pcsdExistingComponent
VSCOMPONENTSELECTORDATA[]

[in] A VSCOMPONENTSELECTORDATA value specifying the attributes of the found 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 FindComponent(  
    [in] REFGUID guidLib,   
    [in] VSCOMPONENTSELECTORDATA * pcsdComponent,  
    [out] IVsNavInfo ** ppRealLibNavInfo,  
    [out] VSCOMPONENTSELECTORDATA * pcsdExistingComponent  
);  

Applies to