IVsComponentSelectorDlg3.ComponentSelectorDlg3 方法

定义

显示浏览 .。。 对话框并返回选定的组件。

public:
 int ComponentSelectorDlg3(System::UInt32 grfFlags, Microsoft::VisualStudio::Shell::Interop::IVsComponentUser ^ pUser, System::String ^ lpszDlgTitle, System::String ^ lpszHelpTopic, Guid % rguidShowOnlyThisTab, Guid % rguidStartOnThisTab, System::String ^ pszMachineName, System::UInt32 cTabInitializers, cli::array <Microsoft::VisualStudio::Shell::Interop::VSCOMPONENTSELECTORTABINIT> ^ prgcstiTabInitializers, System::String ^ pszBrowseFilters, [Runtime::InteropServices::Out] System::String ^ % pbstrBrowseLocation, System::UInt32 targetVersion);
public int ComponentSelectorDlg3 (uint grfFlags, Microsoft.VisualStudio.Shell.Interop.IVsComponentUser pUser, string lpszDlgTitle, string lpszHelpTopic, ref Guid rguidShowOnlyThisTab, ref Guid rguidStartOnThisTab, string pszMachineName, uint cTabInitializers, Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] prgcstiTabInitializers, string pszBrowseFilters, out string pbstrBrowseLocation, uint targetVersion);
abstract member ComponentSelectorDlg3 : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsComponentUser * string * string * Guid * Guid * string * uint32 * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] * string * string * uint32 -> int
Public Function ComponentSelectorDlg3 (grfFlags As UInteger, pUser As IVsComponentUser, lpszDlgTitle As String, lpszHelpTopic As String, ByRef rguidShowOnlyThisTab As Guid, ByRef rguidStartOnThisTab As Guid, pszMachineName As String, cTabInitializers As UInteger, prgcstiTabInitializers As VSCOMPONENTSELECTORTABINIT(), pszBrowseFilters As String, ByRef pbstrBrowseLocation As String, targetVersion As UInteger) As Integer

参数

grfFlags
UInt32

从枚举器中获取的组件选择标志 VSCOMPSELFLAGS

pUser
IVsComponentUser

将在其上调用的接口 AddComponent

lpszDlgTitle
String

对话框标题 (null = = "选择组件" ) 。

lpszHelpTopic
String

F1 帮助主题 (null = = "ComponentPicker" )

rguidShowOnlyThisTab
Guid

要专门显示的选项卡。

rguidStartOnThisTab
Guid

对话框打开时显示的选项卡

pszMachineName
String

枚举此计算机上的 COM 组件。

cTabInitializers
UInt32

中的制表符初始化结构数 prgcstiTabInitializers

prgcstiTabInitializers
VSCOMPONENTSELECTORTABINIT[]

选项卡初始化信息

pszBrowseFilters
String

要在 "浏览 ..." 中使用的筛选器列表 对话框中的字段。

pbstrBrowseLocation
String

目录 (初始/返回值) 启动 "浏览 ..." 对话框。

targetVersion
UInt32

目标框架版本

返回

Int32

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

注解

COM 签名

从 vsshell90:

HRESULT ComponentSelectorDlg3(  
    [in]  VSCOMPSELFLAGS grfFlags,  
    [in]  IVsComponentUser *pUser,  
    [in]  LPCOLESTR lpszDlgTitle,  
    [in]  LPCOLESTR lpszHelpTopic,  
    [in]  REFGUID rguidShowOnlyThisTab,  
    [in]  REFGUID rguidStartOnThisTab,  
    [in]  LPCOLESTR pszMachineName,  
    [in]  ULONG cTabInitializers,  
    [in, size_is(cTabInitializers)]  
         VSCOMPONENTSELECTORTABINIT *prgcstiTabInitializers,  
    [in]  LPCOLESTR pszBrowseFilters,  
    [in, out] BSTR *pbstrBrowseLocation,  
    [in]  TARGETFRAMEWORKVERSION targetVersion  
);  

适用于