Condividi tramite


Metodo Documents.SaveAll

Salva tutti i documenti correntemente aperti nell'ambiente.

Spazio dei nomi:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Sintassi

'Dichiarazione
Sub SaveAll
void SaveAll()
void SaveAll()
abstract SaveAll : unit -> unit 
function SaveAll()

Esempi

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Documents Interfaccia

Spazio dei nomi EnvDTE