다음을 통해 공유


IVsSolution6.BrowseForExistingProject Method

Uses the open project dialog to select a project.

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

Syntax

'Declaration
Function BrowseForExistingProject ( _
    szDialogTitle As String, _
    szStartupLocation As String, _
    preferedProjectType As Guid, _
    <OutAttribute> ByRef pbstrSelected As String _
) As Integer
int BrowseForExistingProject(
    string szDialogTitle,
    string szStartupLocation,
    Guid preferedProjectType,
    out string pbstrSelected
)
int BrowseForExistingProject(
    [InAttribute] String^ szDialogTitle, 
    [InAttribute] String^ szStartupLocation, 
    [InAttribute] Guid preferedProjectType, 
    [OutAttribute] String^% pbstrSelected
)
abstract BrowseForExistingProject : 
        szDialogTitle:string * 
        szStartupLocation:string * 
        preferedProjectType:Guid * 
        pbstrSelected:string byref -> int
function BrowseForExistingProject(
    szDialogTitle : String, 
    szStartupLocation : String, 
    preferedProjectType : Guid, 
    pbstrSelected : String
) : int

Parameters

  • szDialogTitle
    Type: String

    [optional] The title of the dialog.

  • szStartupLocation
    Type: String

    [optional] The initial location on disk from which to open the AddExistingProject dialog.

  • preferedProjectType
    Type: Guid

    [optional] The preferred project type. If this is nulla null reference (Nothing in Visual Basic), "Any projects" is selected by default.

  • pbstrSelected
    Type: String%

    [out] If project creation is successful, the name of selected project file.

Return Value

Type: Int32
The HRESULT.

.NET Framework Security

See Also

Reference

IVsSolution6 Interface

Microsoft.VisualStudio.Shell.Interop Namespace