ErrorEventArgs Constructor (Exception)


Initializes a new instance of the ErrorEventArgs class.

Namespace:   System.IO
Assembly:  System (in System.dll)

new : 
        exception:Exception -> ErrorEventArgs


Type: System.Exception

An Exception that represents the error that occurred.

The following example creates a new instance of ErrorEventArgs and initializes it with an Exception. Then the example calls GetException to retrieve the Exception and display the error message. There is no form associated with this code.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top