Share via


Documents.CloseAll 메서드

해당 환경의 열린 문서를 모두 닫고 선택적으로 저장합니다.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

‘선언
Sub CloseAll ( _
    Save As vsSaveChanges _
)
void CloseAll(
    vsSaveChanges Save
)
void CloseAll(
    [InAttribute] vsSaveChanges Save
)
abstract CloseAll : 
        Save:vsSaveChanges -> unit
function CloseAll(
    Save : vsSaveChanges
)

매개 변수

예제

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

.NET Framework 보안

참고 항목

참조

Documents 인터페이스

EnvDTE 네임스페이스