Documents.SaveAll メソッド

更新 : 2007 年 11 月

その環境で現在開いているすべてのドキュメントを保存します。

名前空間 :  EnvDTE
アセンブリ :  EnvDTE (EnvDTE.dll 内)

構文

'宣言
Sub SaveAll
'使用
Dim instance As Documents

instance.SaveAll()
void SaveAll()
void SaveAll()
function SaveAll()

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

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

Documents インターフェイス

Documents メンバ

EnvDTE 名前空間