IVsOpenProjectOrSolutionDlg::OpenProjectOrSolutionViaDlg Method (UInt32, String^, String^, Guid)

 

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

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

int OpenProjectOrSolutionViaDlg(
	unsigned int grfProjSlnDlgFlags,
	String^ pwzStartDirectory,
	String^ pwzDialogTitle,
	[InAttribute] 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::Int32

If 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
);
Return to top
Show: