IVsOpenProjectOrSolutionDlg.OpenProjectOrSolutionViaDlg Method

Definition

Opens a Solution or Project using the standard open dialog boxes.

C++
public:
 int OpenProjectOrSolutionViaDlg(System::UInt32 grfProjSlnDlgFlags, System::String ^ pwzStartDirectory, System::String ^ pwzDialogTitle, Guid % rguidProjectType);

Parameters

grfProjSlnDlgFlags
UInt32

[in] The options for the dialog box.

pwzStartDirectory
String

[in] Start directory.

pwzDialogTitle
String

[in] Dialog box title. Leave null for default title.

rguidProjectType
Guid

[in] Specifies the project type to use with PSDF_DirectoryPicker.

Returns

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

Remarks

COM Signature

From vsshell80.idl:

cpp#
HRESULT IVsOpenProjectOrSolutionDlg::OpenProjectOrSolutionViaDlg(  
   [in] VSPROJSLNDLGFLAGS grfProjSlnDlgFlags,   
   [in] LPCOLESTR pwzStartDirectory,   
   [in] LPCOLESTR pwzDialogTitle,   
   [in] REFGUID rguidProjectType  
);  

Applies to

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022