IVsComponentSelectorDlg::ComponentSelectorDlg Method (UInt32, IVsComponentUser^, String^, String^, Guid, Guid, String^, UInt32, array<VSCOMPONENTSELECTORTABINIT>^, String^, String^)

 

Used by a package to provide a dialog with which the user can add components to the specified project.

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

int ComponentSelectorDlg(
	unsigned int grfFlags,
	IVsComponentUser^ pUser,
	String^ lpszDlgTitle,
	String^ lpszHelpTopic,
	[InAttribute] Guid% rguidShowOnlyThisTab,
	[InAttribute] Guid% rguidStartOnThisTab,
	String^ pszMachineName,
	unsigned int cTabInitializers,
	array<VSCOMPONENTSELECTORTABINIT>^ prgcstiTabInitializers,
	String^ pszBrowseFilters,
	String^% pbstrBrowseLocation
)

Parameters

grfFlags
Type: System::UInt32

[in] VSCOMSEL_* flags. For more information on VSCOMSEL_, see __VSCOMPSELFLAGS.

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

[in] Interface on which AddComponent will be called.

lpszDlgTitle
Type: System::String^

[in] dialog caption (null == "Component Selector").

lpszHelpTopic
Type: System::String^

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

rguidShowOnlyThisTab
Type: System::Guid

[in] tab to show exclusively.

rguidStartOnThisTab
Type: System::Guid

[in] tab to show when the dialog starts up.

pszMachineName
Type: System::String^

[in] Pointer to a null terminated string containing the machine name. Enumerate COM components on this machine.

cTabInitializers
Type: System::UInt32

[in] Number of tab initialization structs in prgcstiTabInitializers.

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

[in] Specifies the tab initialization information.

pszBrowseFilters
Type: System::String^

[in] Pointer to a null terminated string containing the browse filters.

pbstrBrowseLocation
Type: System::String^

[in, out] On input, xxxx. On output, pointer to a string containing the browse location. List of filters to use in 'Browse...' dialog box. Directory (initial/return value) to start the 'Browse...' dialog box in.

Return Value

Type: System::Int32

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

From vsshell.idl:

HRESULT IVsComponentSelectorDlg::ComponentSelectorDlg(
   [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] VSCOMPONENTSELECTORTABINIT *prgcstiTabInitializers,
   [in] LPCOLESTR pszBrowseFilters,
   [in, out] BSTR *pbstrBrowseLocation
);
Return to top
Show: