Compartir a través de


IVsComponentSelectorDlg4.ComponentSelectorDlg5 Method

This method is same as ComponentSelectorDlg4, except that it takes a TargetFrameworkMoniker instead of a TargetFrameworkVersion, so that it is compliant with extensible multi-targeting.

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

Syntax

'Declaration
Function ComponentSelectorDlg5 ( _
    grfFlags As UInteger, _
    pUser As IVsComponentUser, _
    cComponents As UInteger, _
    rgpcsdComponents As IntPtr(), _
    lpszDlgTitle As String, _
    lpszHelpTopic As String, _
    <OutAttribute> ByRef pxDlgSize As UInteger, _
    <OutAttribute> ByRef pyDlgSize As UInteger, _
    cTabInitializers As UInteger, _
    rgcstiTabInitializers As VSCOMPONENTSELECTORTABINIT(), _
    <OutAttribute> ByRef pguidStartOnThisTab As Guid, _
    pszBrowseFilters As String, _
    <OutAttribute> ByRef pbstrBrowseLocation As String, _
    TargetFrameworkMoniker As String _
) As Integer
int ComponentSelectorDlg5(
    uint grfFlags,
    IVsComponentUser pUser,
    uint cComponents,
    IntPtr[] rgpcsdComponents,
    string lpszDlgTitle,
    string lpszHelpTopic,
    out uint pxDlgSize,
    out uint pyDlgSize,
    uint cTabInitializers,
    VSCOMPONENTSELECTORTABINIT[] rgcstiTabInitializers,
    out Guid pguidStartOnThisTab,
    string pszBrowseFilters,
    out string pbstrBrowseLocation,
    string TargetFrameworkMoniker
)
int ComponentSelectorDlg5(
    [InAttribute] unsigned int grfFlags, 
    [InAttribute] IVsComponentUser^ pUser, 
    [InAttribute] unsigned int cComponents, 
    [InAttribute] array<IntPtr>^ rgpcsdComponents, 
    [InAttribute] String^ lpszDlgTitle, 
    [InAttribute] String^ lpszHelpTopic, 
    [InAttribute] [OutAttribute] unsigned int% pxDlgSize, 
    [InAttribute] [OutAttribute] unsigned int% pyDlgSize, 
    [InAttribute] unsigned int cTabInitializers, 
    [InAttribute] array<VSCOMPONENTSELECTORTABINIT>^ rgcstiTabInitializers, 
    [InAttribute] [OutAttribute] Guid% pguidStartOnThisTab, 
    [InAttribute] String^ pszBrowseFilters, 
    [InAttribute] [OutAttribute] String^% pbstrBrowseLocation, 
    [InAttribute] String^ TargetFrameworkMoniker
)
abstract ComponentSelectorDlg5 : 
        grfFlags:uint32 * 
        pUser:IVsComponentUser * 
        cComponents:uint32 * 
        rgpcsdComponents:IntPtr[] * 
        lpszDlgTitle:string * 
        lpszHelpTopic:string * 
        pxDlgSize:uint32 byref * 
        pyDlgSize:uint32 byref * 
        cTabInitializers:uint32 * 
        rgcstiTabInitializers:VSCOMPONENTSELECTORTABINIT[] * 
        pguidStartOnThisTab:Guid byref * 
        pszBrowseFilters:string * 
        pbstrBrowseLocation:string byref * 
        TargetFrameworkMoniker:string -> int
function ComponentSelectorDlg5(
    grfFlags : uint, 
    pUser : IVsComponentUser, 
    cComponents : uint, 
    rgpcsdComponents : IntPtr[], 
    lpszDlgTitle : String, 
    lpszHelpTopic : String, 
    pxDlgSize : uint, 
    pyDlgSize : uint, 
    cTabInitializers : uint, 
    rgcstiTabInitializers : VSCOMPONENTSELECTORTABINIT[], 
    pguidStartOnThisTab : Guid, 
    pszBrowseFilters : String, 
    pbstrBrowseLocation : String, 
    TargetFrameworkMoniker : String
) : int

Parameters

  • grfFlags
    Type: UInt32

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

  • cComponents
    Type: UInt32

    [in] Number of components in the rgpcsdComponents array.

  • rgpcsdComponents
    Type: array<IntPtr[]

    [in, size_is(cComponents)] Prepopulation of Selected Components. Can be nulla null reference (Nothing in Visual Basic). User has the ability to remove any of these components from the list.

  • lpszDlgTitle
    Type: String

    [in] Dialog box caption (nulla null reference (Nothing in Visual Basic) == "Select component").

  • lpszHelpTopic
    Type: String

    [in] F1 help topic (nulla null reference (Nothing in Visual Basic) == "VS.ComponentPicker").

  • pxDlgSize
    Type: UInt32%

    [in, out] 0 to use default.

  • pyDlgSize
    Type: UInt32%

    [in, out] 0 to use default.

  • cTabInitializers
    Type: UInt32

    [in] Number of tabs.

  • pguidStartOnThisTab
    Type: Guid%

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

  • pszBrowseFilters
    Type: String

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

  • pbstrBrowseLocation
    Type: String%

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

  • TargetFrameworkMoniker
    Type: String

    [in] The target framework moniker.

Return Value

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

.NET Framework Security

See Also

Reference

IVsComponentSelectorDlg4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace