IVsComponentSelectorDlg2::ComponentSelectorDlg2 Method (UInt32, IVsComponentUser^, UInt32, array<IntPtr>^, String^, String^, UInt32, UInt32, UInt32, array<VSCOMPONENTSELECTORTABINIT>^, Guid, String^, String^)

 

Displays Select Component Dialog and returns selected components.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int ComponentSelectorDlg2(
	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
)

Parameters

grfFlags
Type: System::UInt32

[in] Component selection flags taken from the VSCOMPSELFLAGS2 enumerator.

pUser
Type: Microsoft.VisualStudio.Shell.Interop::IVsComponentUser^

[in] Interface on which AddComponent will be called.

cComponents
Type: System::UInt32

[in] Number of components in the rgpcsdComponents array.

rgpcsdComponents
Type: array<System::IntPtr>^

[in] Prepopulation of Selected Components. Can be NULL. User has the ability to remove any of these components from the list.

lpszDlgTitle
Type: System::String^

[in] Dialog box caption (null == "Select component").

lpszHelpTopic
Type: System::String^

[in] F1 help topic (null == "VS.ComponentPicker")

pxDlgSize
Type: System::UInt32

[in,out] 0 to use default.

pyDlgSize
Type: System::UInt32

[in,out] 0 to use default.

cTabInitializers
Type: System::UInt32

[in] Number of tabs.

rgcstiTabInitializers
Type: array<Microsoft.VisualStudio.Shell.Interop::VSCOMPONENTSELECTORTABINIT>^

[in] Show order of tabs and their initialization info.

pguidStartOnThisTab
Type: System::Guid

[in,out] Tab to show when the dialog starts up

pszBrowseFilters
Type: System::String^

[in] List of filters to use in 'Browse...' dialog

pbstrBrowseLocation
Type: System::String^

[in,out]Directory (initial/return value) to start the 'Browse...' dialog in

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell80.idl:

HRESULT IVsComponentSelectorDlg2::ComponentSelectorDlg2(
   [in] VSCOMPSELFLAGS2 grfFlags, 
   [in] IVsComponentUser *pUser, 
   [in] ULONG cComponents, 
   [in, size_is(cComponents)] PVSCOMPONENTSELECTORDATA rgpcsdComponents[], 
   [in] LPCOLESTR lpszDlgTitle, 
   [in] LPCOLESTR lpszHelpTopic, 
   [in, out] ULONG * pxDlgSize, 
   [in, out] ULONG * pyDlgSize, 
   [in] ULONG cTabInitializers, 
   [in, size_is(cTabInitializers)] VSCOMPONENTSELECTORTABINIT rgcstiTabInitializers[], 
   [in, out] GUID * pguidStartOnThisTab, 
   [in] LPCOLESTR pszBrowseFilters, 
   [in, out] BSTR *pbstrBrowseLocation
);
Return to top
Show: