DotNetBrowser  1.9
Public Types | Public Member Functions | Properties | List of all members
DotNetBrowser.Events.ConsoleEventArgs Class Reference

Provides event information for event that indicates that the message was added to the console. More...

Inherits DotNetBrowser.Events.BrowserEventArgs.

Public Types

enum  MessageLevel { MessageLevel.DEBUG = -1, MessageLevel.LOG = 0, MessageLevel.WARNING = 1, MessageLevel.ERROR = 2 }
 Console message levels. More...
 

Public Member Functions

 ConsoleEventArgs (Browser browser, MessageLevel level, int lineNumber, String message, String source)
 Constructs a new ConsoleEvent instance. More...
 
override String ToString ()
 Represent object as string More...
 

Properties

MessageLevel Level [get]
 Gets the console message level (debug, log, warning or error). More...
 
int LineNumber [get]
 Gets the line number that causes the message. More...
 
String Message [get]
 Gets the console message. More...
 
String Source [get]
 Gets a string that describes the source of the console message. Usually the source is a path to a file that causes this console message. More...
 
- Properties inherited from DotNetBrowser.Events.BrowserEventArgs
Browser Browser [get]
 Gets the browser instance on which the event is initially occurred. More...
 

Additional Inherited Members

- Protected Member Functions inherited from DotNetBrowser.Events.BrowserEventArgs
 BrowserEventArgs (Browser browser)
 Constructs a new BrowserEventArgs instance. More...
 

Detailed Description

Provides event information for event that indicates that the message was added to the console.

Member Enumeration Documentation

Console message levels.

Enumerator
DEBUG 

Debug level.

LOG 

Log level.

WARNING 

Warning level.

ERROR 

Error level.

Constructor & Destructor Documentation

DotNetBrowser.Events.ConsoleEventArgs.ConsoleEventArgs ( Browser  browser,
MessageLevel  level,
int  lineNumber,
String  message,
String  source 
)

Constructs a new ConsoleEvent instance.

Parameters
browserthe browser instance on which the event is initially occurred.
levelthe console message level (debug, log, warning or error).
lineNumberthe line number that causes the message.
messagethe console message.
sourcethe source that causes console message. E.g. file name.

Member Function Documentation

override String DotNetBrowser.Events.ConsoleEventArgs.ToString ( )

Represent object as string

Returns
a string that represents the object

Property Documentation

MessageLevel DotNetBrowser.Events.ConsoleEventArgs.Level
get

Gets the console message level (debug, log, warning or error).

int DotNetBrowser.Events.ConsoleEventArgs.LineNumber
get

Gets the line number that causes the message.

String DotNetBrowser.Events.ConsoleEventArgs.Message
get

Gets the console message.

String DotNetBrowser.Events.ConsoleEventArgs.Source
get

Gets a string that describes the source of the console message. Usually the source is a path to a file that causes this console message.

a string that describes the source of the console message.