IVsComponentSelectorDlg4.ComponentSelectorDlg5 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此方法与 ComponentSelectorDlg4(UInt32, IVsComponentUser, UInt32, IntPtr[], String, String, UInt32, UInt32, UInt32, VSCOMPONENTSELECTORTABINIT[], Guid, String, String, UInt32)相同,只不过它采用 TargetFrameworkMoniker 而不是 TargetFrameworkVersion,因此它符合可扩展的多目标。
public:
int ComponentSelectorDlg5(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::String ^ TargetFrameworkMoniker);
public int ComponentSelectorDlg5 (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, string TargetFrameworkMoniker);
abstract member ComponentSelectorDlg5 : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsComponentUser * uint32 * nativeint[] * string * string * uint32 * uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] * Guid * string * string * string -> int
Public Function ComponentSelectorDlg5 (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, TargetFrameworkMoniker As String) As Integer
参数
- grfFlags
- UInt32
[in]从枚举器获取的 VSCOMPSELFLAGS2
组件选择标志。
- pUser
- IVsComponentUser
[in]将在其上调用的 AddComponent
接口。
- cComponents
- UInt32
[in]数组中的 rgpcsdComponents
组件数。
- rgpcsdComponents
-
IntPtr[]
nativeint[]
[in, size_is (cComponents) ]所选组件的预填充。 可以为 null
。 用户能够从列表中删除这些组件中的任何一个。
- lpszDlgTitle
- String
[in]对话框描述文字 (null
== “选择组件”) 。
- lpszHelpTopic
- String
[in]F1 帮助主题 (null
== “VS.ComponentPicker“) 。
- pxDlgSize
- UInt32
[in, out] 0 使用默认值。
- pyDlgSize
- UInt32
[in, out] 0 使用默认值。
- cTabInitializers
- UInt32
[in]选项卡数。
- rgcstiTabInitializers
- VSCOMPONENTSELECTORTABINIT[]
[in, size_is (cTabInitializers) ]显示选项卡的顺序及其初始化信息。
- pguidStartOnThisTab
- Guid
[in, out]用于显示对话框启动时的选项卡。
- pszBrowseFilters
- String
[in]在“浏览...”中使用的筛选器列表。
- pbstrBrowseLocation
- String
[in, out]) 启动“浏览...”的目录 (初始/返回值 对话框。
- TargetFrameworkMoniker
- String
[in]目标框架名字对象。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。