Volume.Disposing Event (Microsoft.DirectX.Direct3D)

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


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.


To add an event handler that listens for the Microsoft.DirectX.Direct3D.Volume.Disposing event, use the following code.

obj.Disposing += new System.EventHandler(this.OnDisposing);

The Disposed property of the Volume object indicates whether that object has been disposed.