Partilhar via


Método Documents.CloseAll

Fecha todos os documentos abertos no ambiente e, opcionalmente, salva-os.

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

Sintaxe

'Declaração
Sub CloseAll ( _
    Save As vsSaveChanges _
)
void CloseAll(
    vsSaveChanges Save
)
void CloseAll(
    [InAttribute] vsSaveChanges Save
)
abstract CloseAll : 
        Save:vsSaveChanges -> unit 
function CloseAll(
    Save : vsSaveChanges
)

Parâmetros

Exemplos

Sub CloseAllExample()
  ' Before running, create a text file or other document window.
  Dim docs As Documents
  Dim doc As Document
  Dim win As Window

  docs = documents
  docs.SaveAll()
  doc = dte.ActiveDocument
  win = doc.NewWindow()
  doc.Save("c:\temp\docsave.txt")
  msgbox(doc.Selection().text)
  docs.CloseAll(vsSaveChanges.vsSaveChangesPrompt)
End Sub

Segurança do .NET Framework

Consulte também

Referência

Documents Interface

Namespace EnvDTE