IVsComponentSelectorDlg3.ComponentSelectorDlg4 方法

定义

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

public:
 int ComponentSelectorDlg4(System::UInt32 grfFlags, Microsoft::VisualStudio::Shell::Interop::IVsComponentUser ^ pUser, System::UInt32 cComponents, cli::array <IntPtr> ^ rgpcsdComponents, System::String ^ lpszDlgTitle, System::String ^ lpszHelpTopic, [Runtime::InteropServices::Out] System::UInt32 % pxDlgSize, [Runtime::InteropServices::Out] System::UInt32 % pyDlgSize, System::UInt32 cTabInitializers, cli::array <Microsoft::VisualStudio::Shell::Interop::VSCOMPONENTSELECTORTABINIT> ^ rgcstiTabInitializers, [Runtime::InteropServices::Out] Guid % pguidStartOnThisTab, System::String ^ pszBrowseFilters, [Runtime::InteropServices::Out] System::String ^ % pbstrBrowseLocation, System::UInt32 targetVersion);
public int ComponentSelectorDlg4 (uint grfFlags, Microsoft.VisualStudio.Shell.Interop.IVsComponentUser pUser, uint cComponents, IntPtr[] rgpcsdComponents, string lpszDlgTitle, string lpszHelpTopic, out uint pxDlgSize, out uint pyDlgSize, uint cTabInitializers, Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] rgcstiTabInitializers, out Guid pguidStartOnThisTab, string pszBrowseFilters, out string pbstrBrowseLocation, uint targetVersion);
abstract member ComponentSelectorDlg4 : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsComponentUser * uint32 * nativeint[] * string * string * uint32 * uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] * Guid * string * string * uint32 -> int
Public Function ComponentSelectorDlg4 (grfFlags As UInteger, pUser As IVsComponentUser, cComponents As UInteger, rgpcsdComponents As IntPtr(), lpszDlgTitle As String, lpszHelpTopic As String, ByRef pxDlgSize As UInteger, ByRef pyDlgSize As UInteger, cTabInitializers As UInteger, rgcstiTabInitializers As VSCOMPONENTSELECTORTABINIT(), ByRef pguidStartOnThisTab As Guid, pszBrowseFilters As String, ByRef pbstrBrowseLocation As String, targetVersion As UInteger) As Integer

参数

grfFlags
UInt32

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

pUser
IVsComponentUser

将在其上调用的接口 AddComponent

cComponents
UInt32

数组中的组件数 rgpcsdComponents

rgpcsdComponents

IntPtr[]

nativeint[]

选定组件的 Prepopulation。 可以为 null。 用户能够从列表中删除这些组件。

lpszDlgTitle
String

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

lpszHelpTopic
String

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

pxDlgSize
UInt32

0则使用默认值。

pyDlgSize
UInt32

0则使用默认值。

cTabInitializers
UInt32

选项卡的数目。

rgcstiTabInitializers
VSCOMPONENTSELECTORTABINIT[]

显示选项卡及其初始化信息的顺序。

pguidStartOnThisTab
Guid

启动对话框时显示的选项卡

pszBrowseFilters
String

要在 "浏览 ..." 中使用的筛选器的列表。

pbstrBrowseLocation
String

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

targetVersion
UInt32

返回

Int32

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

注解

COM 签名

从 vsshell90:

HRESULT ComponentSelectorDlg3(  
    [in]  VSCOMPSELFLAGS grfFlags,  
    [in]  ULONG cComponents,  
    [in, size_is(cComponents)] PVSCOMPONENTSELECTORDATA rgpcsdComponents[],  
    [in]  LPCOLESTR lpszDlgTitle,  
    [in]  LPCOLESTR lpszHelpTopic,  
    [in, out]  ULONG * pxDlgSize,  
    [in, out]  ULONG * pyDlgSize,  
    [in]  REFGUID rguidShowOnlyThisTab,  
    [in]  ULONG cTabInitializers,  
    [in, size_is(cTabInitializers)]  
         VSCOMPONENTSELECTORTABINIT *prgcstiTabInitializers,  
    [in, out] GUID *  pguidStartOnThisTab,  
    [in]  LPCOLESTR pszBrowseFilters,  
    [in, out] BSTR *pbstrBrowseLocation,  
    [in]  TARGETFRAMEWORKVERSION targetVersion  
);  

适用于