IVsOpenProjectOrSolutionDlg.OpenProjectOrSolutionViaDlg Method

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

int OpenProjectOrSolutionViaDlg(
	uint grfProjSlnDlgFlags,
	string pwzStartDirectory,
	string pwzDialogTitle,
	ref Guid rguidProjectType
)

Parameters

grfProjSlnDlgFlags
Type: System.UInt32
[in]
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.

COM Signature

From vsshell80.idl:

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

Community Additions

ADD
Show: