VertexBuffer.Created Event (Microsoft.DirectX.Direct3D)

Occurs after a device is reset and the VertexBuffer is re-created.

Definition

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

Remarks

**Note: **This event occurs only on Pool.Default resources.

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

[C#]
vBuffer.Created += new System.EventHandler(this.CreatedEventHandler);