Occurs when the document host item shuts down.
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
This is the last event that is raised when the document host item in your project unloads. Use this event for any additional clean up. The application domain for the assembly unloads when the document host item shuts down.
The following code example adds a new ThisDocument class in a document-level project.event handler that displays a message that shows that the document is shutting down. To use this example, run it from the