_Solution.Close Method

Closes the current solution.

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


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


  • 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.


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


_Solution Interface

EnvDTE Namespace