Partilhar via


Método Documents.SaveAll

Salva todos os documentos abertos no momento no ambiente.

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

Sintaxe

'Declaração
Sub SaveAll
void SaveAll()
void SaveAll()
abstract SaveAll : unit -> unit 
function SaveAll()

Exemplos

Sub SaveAllExample()
    ' 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