_Solution.Close Method

Closes the current solution.

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

void Close(
	bool SaveFirst
)

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.

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

Community Additions

ADD
Show: