The type of event.
Declaring type: BrowserEvent
Namespace: Vrml.EAI.Event
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public int ID { get; }
Property Value
One of the constants INITIALIZED, SHUTDOWN, URL_ERROR or CONNECTION_ERROR defined in this class.
Collapse/Expand Remarks
This is a read-only property that allows the get information about which specific event actually happened. This property can only be set via the constructor when creating new BrowserEvent objects.
Collapse/Expand Example
The following example shows how to find out which type of event actually happened:
C#
Vrml.EAI.Event.BrowserEvent evt = ...;
switch (evt.ID)
{
case Vrml.EAI.Event.BrowserEvent.INITIALIZED:
    // The browser finished to load a new scene
    ...
    break;
case Vrml.EAI.Event.BrowserEvent.SHUTDOWN:
    // The browser is about to unload a scene
    ...
    break;
case Vrml.EAI.Event.BrowserEvent.URL_ERROR:
    // Download from an URL failed
    ...
    break;
case Vrml.EAI.Event.BrowserEvent.CONNECTION_ERROR:
    // An error occurred when communicating with the browser
    ...
    break;
}