Sdílet prostřednictvím


RenderTarget.Disposing Event

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

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

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista