IVsComponentSelectorDlg.ComponentSelectorDlg Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used by a package to provide a dialog with which the user can add components to the specified project.
public:
int ComponentSelectorDlg(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);
public int ComponentSelectorDlg (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);
abstract member ComponentSelectorDlg : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsComponentUser * string * string * Guid * Guid * string * uint32 * Microsoft.VisualStudio.Shell.Interop.VSCOMPONENTSELECTORTABINIT[] * string * string -> int
Public Function ComponentSelectorDlg (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) As Integer
Parameters
- grfFlags
- UInt32
[in] VSCOMSEL_* flags. For more information on VSCOMSEL_, see __VSCOMPSELFLAGS.
- pUser
- IVsComponentUser
[in] Interface on which AddComponent(VSADDCOMPOPERATION, UInt32, IntPtr[], IntPtr, VSADDCOMPRESULT[]) will be called.
- lpszDlgTitle
- String
[in] dialog caption (null
== "Component Selector").
- lpszHelpTopic
- String
[in] F1 help topic (null
== "VS.ComponentPicker").
- rguidShowOnlyThisTab
- Guid
[in] tab to show exclusively.
- rguidStartOnThisTab
- Guid
[in] tab to show when the dialog starts up.
- pszMachineName
- String
[in] Pointer to a null terminated string containing the machine name. Enumerate COM components on this machine.
- cTabInitializers
- UInt32
[in] Number of tab initialization structs in prgcstiTabInitializers
.
- prgcstiTabInitializers
- VSCOMPONENTSELECTORTABINIT[]
[in] Specifies the tab initialization information.
- pszBrowseFilters
- String
[in] Pointer to a null terminated string containing the browse filters.
- pbstrBrowseLocation
- 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.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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
);