Window2::Close Method (vsSaveChanges)

 

Closes the open document and optionally saves it, or closes and destroys the window.

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

void Close(
	vsSaveChanges SaveChanges = vsSaveChanges::vsSaveChangesNo
)

Parameters

SaveChanges
Type: EnvDTE::vsSaveChanges

Optional. A vsSaveChanges constant that determines whether to save an item or items.

This example makes a text file the active window. It then uses it to iterate through the windows collection to display a number of properties, and it then closes the window object.

Before running this example, open a project in Visual Studio, add a text file named "TextFile1.txt" to it, and make it the active window.

No code example is currently available or this language may not be supported.
Return to top
Show: