Share via


Effect.Lost Event (Microsoft.DirectX.Direct3D)

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

Definition

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

Remarks

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

[C#]
effect.Lost += new System.EventHandler(this.LostEventHandler);