This documentation is archived and is not being maintained.

Close Method (Solution Object)

Visual Studio .NET 2003

Closes the current solution.

[Visual Basic .NET]
Public Sub Close( _
   Optional ByVal SaveFirst As Boolean = False _
) 
[Visual Basic 6]
Sub Close( _
   Optional ByVal SaveFirst As Boolean = False _
) 
[C++]
HRESULT __stdcall Close(
   VARIANT_BOOL SaveFirst
);
[C#]
void Close(
   bool SaveFirst
);
[JScript .NET]
public 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.

Example

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

See Also

Open Method (General Extensibility)

Applies To: Solution Object

Show: