Export (0) Print
Expand All

_Solution.Close Method

Closes the current solution.

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

void Close (
	[OptionalAttribute] [InAttribute] bool SaveFirst
)
void Close (
	/** @attribute InAttribute() */ /** @attribute OptionalAttribute() */ boolean SaveFirst
)
function Close (
	SaveFirst : boolean
)

Parameters

SaveFirst

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

Sub CloseExample()
   ' Open a solution before running this example.
   Dim soln As Solution

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

   ' Close the current solution.
   soln.Close()
End Sub

Community Additions

ADD
Show:
© 2014 Microsoft