Condividi tramite


_Solution.Close Method

Closes the current solution.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Sub Close ( _
    SaveFirst As Boolean _
)
void Close(
    bool SaveFirst
)
void Close(
    [InAttribute] bool SaveFirst
)
abstract Close : 
        SaveFirst:bool -> unit
function Close(
    SaveFirst : boolean
)

Parameters

  • SaveFirst
    Type: System.Boolean

    Indicates whether to save the solution before closing it; true if the solution should be saved prior to closing it, false if not.

Examples

Sub CreateExample(ByVal dte As DTE)
        ' Open a solution before running this example.
        Dim soln As Solution

        ' Create a reference to the solution.
        soln = dte.Solution

        ' Create a new solution.
        soln.Create("c:\temp", "ANewSoln.sln")
    End Sub

.NET Framework Security

See Also

Reference

_Solution Interface

EnvDTE Namespace