Bagikan melalui


Effect.Disposing Event

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

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public event EventHandler Disposing

Remarks

IsDisposed indicates whether that object has been disposed.

Example

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

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

See Also

Reference

Effect Class
Effect Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista