Share via


IVsComponentSelectorDlg3.ComponentSelectorDlg4 Method

Definition

Displays Browse … Dialog and returns selected components.

public:
 int ComponentSelectorDlg4(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::UInt32 targetVersion);
public int ComponentSelectorDlg4 (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, uint targetVersion);
abstract member ComponentSelectorDlg4 : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsComponentUser * uint32 * nativeint[] * string * string * uint32 * uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] * Guid * string * string * uint32 -> int
Public Function ComponentSelectorDlg4 (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, targetVersion As UInteger) As Integer

Parameters

grfFlags
UInt32

Component selection flags taken from the VSCOMPSELFLAGS2 enumerator.

pUser
IVsComponentUser

Interface on which AddComponent will be called.

cComponents
UInt32

Number of components in the rgpcsdComponents array.

rgpcsdComponents

IntPtr[]

nativeint[]

Prepopulation of Selected Components. Can be null. User has the ability to remove any of these components from the list.

lpszDlgTitle
String

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

lpszHelpTopic
String

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

pxDlgSize
UInt32

0 to use default.

pyDlgSize
UInt32

0 to use default.

cTabInitializers
UInt32

Number of tabs.

rgcstiTabInitializers
VSCOMPONENTSELECTORTABINIT[]

Show order of tabs and their initialization info.

pguidStartOnThisTab
Guid

Tab to show when the dialog starts up

pszBrowseFilters
String

List of filters to use in 'Browse…'.

pbstrBrowseLocation
String

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

targetVersion
UInt32

Returns

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

Remarks

COM Signature

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  
);  

Applies to