Compartir a través de


_Solution.Close(Boolean) Method

Definition

Closes the current solution.

void Close(bool SaveFirst = false);
[System.Runtime.InteropServices.DispId(18)]
public void Close (bool SaveFirst = false);
[<System.Runtime.InteropServices.DispId(18)>]
abstract member Close : bool -> unit
Public Sub Close (Optional SaveFirst As Boolean = false)

Parameters

SaveFirst
Boolean

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

Attributes

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  

Applies to