Compartilhar via


IVsComponentSelectorDlg3.ComponentSelectorDlg3 Method

Definition

Displays Browse … Dialog and returns selected components.

public:
 int ComponentSelectorDlg3(System::UInt32 grfFlags, Microsoft::VisualStudio::Shell::Interop::IVsComponentUser ^ pUser, System::String ^ lpszDlgTitle, System::String ^ lpszHelpTopic, Guid % rguidShowOnlyThisTab, Guid % rguidStartOnThisTab, System::String ^ pszMachineName, System::UInt32 cTabInitializers, cli::array <Microsoft::VisualStudio::Shell::Interop::VSCOMPONENTSELECTORTABINIT> ^ prgcstiTabInitializers, System::String ^ pszBrowseFilters, [Runtime::InteropServices::Out] System::String ^ % pbstrBrowseLocation, System::UInt32 targetVersion);
public int ComponentSelectorDlg3 (uint grfFlags, Microsoft.VisualStudio.Shell.Interop.IVsComponentUser pUser, string lpszDlgTitle, string lpszHelpTopic, ref Guid rguidShowOnlyThisTab, ref Guid rguidStartOnThisTab, string pszMachineName, uint cTabInitializers, Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] prgcstiTabInitializers, string pszBrowseFilters, out string pbstrBrowseLocation, uint targetVersion);
abstract member ComponentSelectorDlg3 : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsComponentUser * string * string * Guid * Guid * string * uint32 * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] * string * string * uint32 -> int
Public Function ComponentSelectorDlg3 (grfFlags As UInteger, pUser As IVsComponentUser, lpszDlgTitle As String, lpszHelpTopic As String, ByRef rguidShowOnlyThisTab As Guid, ByRef rguidStartOnThisTab As Guid, pszMachineName As String, cTabInitializers As UInteger, prgcstiTabInitializers As VSCOMPONENTSELECTORTABINIT(), pszBrowseFilters As String, ByRef pbstrBrowseLocation As String, targetVersion As UInteger) As Integer

Parameters

grfFlags
UInt32

Component selection flags taken from the VSCOMPSELFLAGS enumerator.

pUser
IVsComponentUser

Interface on which AddComponent will be called.

lpszDlgTitle
String

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

lpszHelpTopic
String

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

rguidShowOnlyThisTab
Guid

Tab to show exclusively.

rguidStartOnThisTab
Guid

Tab to show when the dialog opens

pszMachineName
String

Enumerate COM components on this computer.

cTabInitializers
UInt32

Number of tab initialization structs in prgcstiTabInitializers.

prgcstiTabInitializers
VSCOMPONENTSELECTORTABINIT[]

Tab initialization information

pszBrowseFilters
String

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

pbstrBrowseLocation
String

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

targetVersion
UInt32

Target framework version

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

Applies to