次の方法で共有


IVsSolution2.OpenSolutionViaDlg Method (String, Int32)

Controls options for the Open Solution dialog box.

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

Syntax

'宣言
Function OpenSolutionViaDlg ( _
    pszStartDirectory As String, _
    fDefaultToAllProjectsFilter As Integer _
) As Integer
'使用
Dim instance As IVsSolution2
Dim pszStartDirectory As String
Dim fDefaultToAllProjectsFilter As Integer
Dim returnValue As Integer

returnValue = instance.OpenSolutionViaDlg(pszStartDirectory, _
    fDefaultToAllProjectsFilter)
int OpenSolutionViaDlg(
    string pszStartDirectory,
    int fDefaultToAllProjectsFilter
)
int OpenSolutionViaDlg(
    String^ pszStartDirectory, 
    int fDefaultToAllProjectsFilter
)
abstract OpenSolutionViaDlg : 
        pszStartDirectory:string * 
        fDefaultToAllProjectsFilter:int -> int 
function OpenSolutionViaDlg(
    pszStartDirectory : String, 
    fDefaultToAllProjectsFilter : int
) : int

Parameters

  • pszStartDirectory
    Type: System.String
    [in] Start directory pointed to by the Open Solution dialog box.
  • fDefaultToAllProjectsFilter
    Type: System.Int32
    [in] If true, then the All Project filter is defaulted to instead of the solution filter.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsSolution.OpenSolutionViaDlg(String, Int32)

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.

.NET Framework Security

See Also

Reference

IVsSolution2 Interface

IVsSolution2 Members

OpenSolutionViaDlg Overload

Microsoft.VisualStudio.Shell.Interop Namespace