Partager via


IVsSolution2.OpenSolutionViaDlg(String, Int32) Method

Definition

Controls options for the Open Solution dialog box.

public:
 int OpenSolutionViaDlg(System::String ^ pszStartDirectory, int fDefaultToAllProjectsFilter);
public:
 int OpenSolutionViaDlg(Platform::String ^ pszStartDirectory, int fDefaultToAllProjectsFilter);
int OpenSolutionViaDlg(std::wstring const & pszStartDirectory, int fDefaultToAllProjectsFilter);
public int OpenSolutionViaDlg (string pszStartDirectory, int fDefaultToAllProjectsFilter);
abstract member OpenSolutionViaDlg : string * int -> int
Public Function OpenSolutionViaDlg (pszStartDirectory As String, fDefaultToAllProjectsFilter As Integer) As Integer

Parameters

pszStartDirectory
String

[in] Start directory pointed to by the Open Solution dialog box.

fDefaultToAllProjectsFilter
Int32

[in] If true, then the All Project filter is defaulted to instead of the solution filter.

Returns

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

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution2::OpenSolutionViaDlg(  
   LPCOLESTR pszStartDirectory,   
   BOOL fDefaultToAllProjectsFilter  
);  

This method brings up the Open Solution dialog box. The user can then choose a solution or project to open. The solution or project is opened by this method before the method returns.

Applies to