IVsSimpleBrowseComponentSet.FindComponent 方法

定义

在组件集中查找组件。

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

参数

guidLib
Guid

Guid 标识已注册库的。 可以 GUID_NULL。

pcsdComponent
VSCOMPONENTSELECTORDATA[]

中一个 VSCOMPONENTSELECTORDATA 值,该值指定要查找的组件的属性。

ppRealLibNavInfo
IVsNavInfo

IVsNavInfo 找到的组件的接口。

pcsdExistingComponent
VSCOMPONENTSELECTORDATA[]

中一个 VSCOMPONENTSELECTORDATA 值,该值指定所发现组件的属性。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 vsshell80:

HRESULT FindComponent(  
    [in] REFGUID guidLib,   
    [in] VSCOMPONENTSELECTORDATA * pcsdComponent,  
    [out] IVsNavInfo ** ppRealLibNavInfo,  
    [out] VSCOMPONENTSELECTORDATA * pcsdExistingComponent  
);  

适用于