IVsComponentSelectorDlg3::ComponentSelectorDlg3 Method (UInt32, IVsComponentUser^, String^, String^, Guid, Guid, String^, UInt32, array<VSCOMPONENTSELECTORTABINIT>^, String^, String^, UInt32)

 

Displays Browse … Dialog and returns selected components.

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

int ComponentSelectorDlg3(
	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,
	unsigned int targetVersion
)

Parameters

grfFlags
Type: System::UInt32

Component selection flags taken from the VSCOMPSELFLAGS enumerator.

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

Interface on which AddComponent will be called.

lpszDlgTitle
Type: System::String^

Dialog box caption (null == "Select component").

lpszHelpTopic
Type: System::String^

F1 help topic (null == "VS.ComponentPicker")

rguidShowOnlyThisTab
Type: System::Guid

Tab to show exclusively.

rguidStartOnThisTab
Type: System::Guid

Tab to show when the dialog opens

pszMachineName
Type: System::String^

Enumerate COM components on this computer.

cTabInitializers
Type: System::UInt32

Number of tab initialization structs in prgcstiTabInitializers.

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

Tab initialization information

pszBrowseFilters
Type: System::String^

List of filters to use in 'Browse…' dialog.

pbstrBrowseLocation
Type: System::String^

Directory (initial/return value) to start the 'Browse…' dialog in.

targetVersion
Type: System::UInt32

Target framework version

Return Value

Type: System::Int32

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

From vsshell90.idl:

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