Share via


MatrixStack.Disposing Event (Microsoft.DirectX)

Occurs when the Dispose method is called or when the object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.

Definition

Visual Basic Public Event Disposing As EventHandlerLeave Site
C# public event EventHandlerLeave Site Disposing;
C++ public:
event EventHandlerLeave SiteDisposing;
JScript In JScript, you can use events, but you cannot define your own.

Remarks

To add an event handler that listens for a MatrixStack.Disposing event, use the following C# code.

[C#]ms.Disposing += new System.EventHandler(this.DisposingEventHandler);

The Dispose property of an object indicates whether that object has been disposed.