Partager via


Document.Shutdown Event

Occurs when the document host item shuts down.

Namespace:  Microsoft.Office.Tools.Word
Assemblies:   Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

Syntax

'Declaration
Event Shutdown As EventHandler
event EventHandler Shutdown

Remarks

This is the last event to be called in a Document as it unloads. Use this event for any additional clean up.

In a document-level customization, the application domain for the assembly unloads when the document host item shuts down.

In an application-level add-in, the application domain does not unload when the document host item shuts down. Also, the underlying document object is no more available. To access the document before it shuts down use CloseEvent instead.

.NET Framework Security

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace