IVsComponentSelectorDlg3::ComponentSelectorDlg4 Method (UInt32, IVsComponentUser^, UInt32, array<IntPtr>^, String^, String^, UInt32, UInt32, UInt32, array<VSCOMPONENTSELECTORTABINIT>^, Guid, String^, String^, UInt32)
Displays Browse … Dialog and returns selected components.
Assembly: Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)
int ComponentSelectorDlg4( unsigned int grfFlags, IVsComponentUser^ pUser, unsigned int cComponents, array<IntPtr>^ rgpcsdComponents, String^ lpszDlgTitle, String^ lpszHelpTopic, unsigned int% pxDlgSize, unsigned int% pyDlgSize, unsigned int cTabInitializers, array<VSCOMPONENTSELECTORTABINIT>^ rgcstiTabInitializers, Guid% pguidStartOnThisTab, String^ pszBrowseFilters, String^% pbstrBrowseLocation, unsigned int targetVersion )
Parameters
- grfFlags
-
Type:
System::UInt32
Component selection flags taken from the VSCOMPSELFLAGS2 enumerator.
- pUser
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsComponentUser^
Interface on which AddComponent will be called.
- cComponents
-
Type:
System::UInt32
Number of components in the rgpcsdComponents array.
- rgpcsdComponents
-
Type:
array<System::IntPtr>^
Prepopulation of Selected Components. Can be null. User has the ability to remove any of these components from the list.
- lpszDlgTitle
-
Type:
System::String^
Dialog box caption (null == "Select component").
- lpszHelpTopic
-
Type:
System::String^
F1 help topic (null == "VS.ComponentPicker")
- pxDlgSize
-
Type:
System::UInt32
0 to use default.
- pyDlgSize
-
Type:
System::UInt32
0 to use default.
- cTabInitializers
-
Type:
System::UInt32
Number of tabs.
- rgcstiTabInitializers
-
Type:
array<Microsoft.VisualStudio.Shell.Interop::VSCOMPONENTSELECTORTABINIT>^
Show order of tabs and their initialization info.
- pguidStartOnThisTab
-
Type:
System::Guid
Tab to show when the dialog starts up
- pszBrowseFilters
-
Type:
System::String^
List of filters to use in 'Browse…'.
- pbstrBrowseLocation
-
Type:
System::String^
Directory (initial/return value) to start the 'Browse…' dialog in.
- targetVersion
- Type: System::UInt32
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell90.idl:
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
);