Partager via


IVsOpenProjectOrSolutionDlg.OpenProjectOrSolutionViaDlg Method

Definition

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

public:
 int OpenProjectOrSolutionViaDlg(System::UInt32 grfProjSlnDlgFlags, System::String ^ pwzStartDirectory, System::String ^ pwzDialogTitle, Guid % rguidProjectType);
public int OpenProjectOrSolutionViaDlg (uint grfProjSlnDlgFlags, string pwzStartDirectory, string pwzDialogTitle, ref Guid rguidProjectType);
abstract member OpenProjectOrSolutionViaDlg : uint32 * string * string * Guid -> int
Public Function OpenProjectOrSolutionViaDlg (grfProjSlnDlgFlags As UInteger, pwzStartDirectory As String, pwzDialogTitle As String, ByRef rguidProjectType As Guid) As Integer

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:

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

Applies to