共用方式為


Effect.Lost Event

Occurs when an object is lost, normally just before a device is reset.

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

Syntax

public event EventHandler Lost

Example

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

effect.Lost += new System.EventHandler( this.LostEventHandler );

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista