次の方法で共有


IVsComponentSelectorDlg2.ComponentSelectorDlg2 Method

Definition

Displays Select Component Dialog and returns selected components.

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

Parameters

grfFlags
UInt32

[in] Component selection flags taken from the VSCOMPSELFLAGS2 enumerator.

pUser
IVsComponentUser

[in] Interface on which AddComponent will be called.

cComponents
UInt32

[in] Number of components in the rgpcsdComponents array.

rgpcsdComponents

IntPtr[]

nativeint[]

[in] Prepopulation of Selected Components. Can be NULL. User has the ability to remove any of these components from the list.

lpszDlgTitle
String

[in] Dialog box caption (null == "Select component").

lpszHelpTopic
String

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

pxDlgSize
UInt32

[in,out] 0 to use default.

pyDlgSize
UInt32

[in,out] 0 to use default.

cTabInitializers
UInt32

[in] Number of tabs.

rgcstiTabInitializers
VSCOMPONENTSELECTORTABINIT[]

[in] Show order of tabs and their initialization info.

pguidStartOnThisTab
Guid

[in,out] Tab to show when the dialog starts up

pszBrowseFilters
String

[in] List of filters to use in 'Browse...' dialog

pbstrBrowseLocation
String

[in,out]Directory (initial/return value) to start the 'Browse...' dialog in

Returns

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

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsComponentSelectorDlg2::ComponentSelectorDlg2(  
   [in] VSCOMPSELFLAGS2 grfFlags,   
   [in] IVsComponentUser *pUser,   
   [in] ULONG cComponents,   
   [in, size_is(cComponents)] PVSCOMPONENTSELECTORDATA rgpcsdComponents[],   
   [in] LPCOLESTR lpszDlgTitle,   
   [in] LPCOLESTR lpszHelpTopic,   
   [in, out] ULONG * pxDlgSize,   
   [in, out] ULONG * pyDlgSize,   
   [in] ULONG cTabInitializers,   
   [in, size_is(cTabInitializers)] VSCOMPONENTSELECTORTABINIT rgcstiTabInitializers[],   
   [in, out] GUID * pguidStartOnThisTab,   
   [in] LPCOLESTR pszBrowseFilters,   
   [in, out] BSTR *pbstrBrowseLocation  
);  

Applies to