IVsOpenProjectOrSolutionDlg.OpenProjectOrSolutionViaDlg Method (UInt32, String, String, Guid)
Visual Studio 2015
Opens a Solution or Project using the standard open dialog boxes.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int OpenProjectOrSolutionViaDlg( uint grfProjSlnDlgFlags, string pwzStartDirectory, string pwzDialogTitle, [InAttribute] ref Guid rguidProjectType )
Parameters
- grfProjSlnDlgFlags
-
Type:
System.UInt32
[in] The options for the dialog box.
- pwzStartDirectory
-
Type:
System.String
[in] Start directory.
- pwzDialogTitle
-
Type:
System.String
[in] Dialog box title. Leave null for default title.
- rguidProjectType
-
Type:
System.Guid
[in] Specifies the project type to use with PSDF_DirectoryPicker.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell80.idl:
HRESULT IVsOpenProjectOrSolutionDlg::OpenProjectOrSolutionViaDlg( [in] VSPROJSLNDLGFLAGS grfProjSlnDlgFlags, [in] LPCOLESTR pwzStartDirectory, [in] LPCOLESTR pwzDialogTitle, [in] REFGUID rguidProjectType );
Show: