Initializes a BrowserEvent with a given browser and event ID.
Declaring type: BrowserEvent
Namespace: Vrml.EAI.Event
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public BrowserEvent (
        Browser b,
        int action
) 
Parameters
b
The Browser object that produced this event.
action
The type of event. This is should be one of the constants INITIALIZED, SHUTDOWN, URL_ERROR or CONNECTION_ERROR defined in this class.
Collapse/Expand Remarks
Usually, you do not create your own browser events - they get generated by the Browser object when its status changes, and you get them as a parameter to your BrowserDelegate. But nevertheless this constructor is public which allows you to create your own events and send them to your delegate.
Collapse/Expand Example
The following example demonstrates how you can create your own URL_ERROR event and send it to your delegate:
C#
Vrml.EAI.Browser browser = ...;
Vrml.EAI.Event.BrowserEvent evt = new Vrml.EAI.Event.BrowserEvent(browser, Vrml.EAI.Event.BrowserEvent.URL_ERROR);
OnBrowserEvent(evt);