IVsSolution6.BrowseForExistingProject(String, String, Guid, String) 方法

定義

使用 [開啟專案] 對話方塊來選取專案。Uses the open project dialog to select a project.

public:
 int BrowseForExistingProject(System::String ^ szDialogTitle, System::String ^ szStartupLocation, Guid preferedProjectType, [Runtime::InteropServices::Out] System::String ^ % pbstrSelected);
public int BrowseForExistingProject (string szDialogTitle, string szStartupLocation, Guid preferedProjectType, out string pbstrSelected);
abstract member BrowseForExistingProject : string * string * Guid * string -> int
Public Function BrowseForExistingProject (szDialogTitle As String, szStartupLocation As String, preferedProjectType As Guid, ByRef pbstrSelected As String) As Integer

參數

szDialogTitle
String

參數對話方塊的標題。[optional] The title of the dialog.

szStartupLocation
String

參數磁片上要開啟 [AddExistingProject] 對話方塊的初始位置。[optional] The initial location on disk from which to open the AddExistingProject dialog.

preferedProjectType
Guid

參數慣用的專案類型。[optional] The preferred project type. 如果是 null ,預設會選取 [任何專案]。If this is null, "Any projects" is selected by default.

pbstrSelected
String

擴展如果專案建立成功,則為所選取專案檔的名稱。[out] If project creation is successful, the name of selected project file.

傳回

Int32

HRESULT。The HRESULT.

適用於