Partager via


IVsSolution2.OpenSolutionFile Method (UInt32, String)

Opens a solution file of the type .sln, .dsw, or .vbg.

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

Syntax

'Déclaration
Function OpenSolutionFile ( _
    grfOpenOpts As UInteger, _
    pszFilename As String _
) As Integer
'Utilisation
Dim instance As IVsSolution2
Dim grfOpenOpts As UInteger
Dim pszFilename As String
Dim returnValue As Integer

returnValue = instance.OpenSolutionFile(grfOpenOpts, _
    pszFilename)
int OpenSolutionFile(
    uint grfOpenOpts,
    string pszFilename
)
int OpenSolutionFile(
    [InAttribute] unsigned int grfOpenOpts, 
    [InAttribute] String^ pszFilename
)
abstract OpenSolutionFile : 
        grfOpenOpts:uint32 * 
        pszFilename:string -> int 
function OpenSolutionFile(
    grfOpenOpts : uint, 
    pszFilename : String
) : int

Parameters

  • pszFilename
    Type: System.String
    [in] Pointer to the name of the solution file to open.

Return Value

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

Implements

IVsSolution.OpenSolutionFile(UInt32, String)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolution2::OpenSolutionFile(
   [in] VSSLNOPENOPTIONS grfOpenOpts, 
   [in] LPCOLESTR pszFilename
);

.NET Framework Security

See Also

Reference

IVsSolution2 Interface

IVsSolution2 Members

OpenSolutionFile Overload

Microsoft.VisualStudio.Shell.Interop Namespace