Unloads the currently loaded document.
[Visual Basic] MustOverride Public Sub Unload() [C#] public abstract void Unload(); [C++] public: virtual void Unload() = 0; [JScript] public abstract function Unload();
Notes to Inheritors: Meant to be overridden in a derived class, call this method to unload the document. The code stream should detach any events it may be checking for at that time. After this call, the document may undergo many changes, none of which should impact the underlying document code. If a document is being reloaded from disk, the designer host will typically call Unload, then Load.
CodeStream Class | CodeStream Members | System.ComponentModel.Design Namespace | Load