Function
Returns error information when an error occurs.
Format
dncGraph1_OnError(object sender, short DeviceNo, DncErrorEventArgs e)
Parameters
sender [ C#: object ] [ VB.NET: object ]
Event source.
e [ C#: DncErrorEventArgs ] [ VB.NET: DncErrorEventArgs ]
Event arguments. Details are shown below.
Event argument
Arguments |
C# Type |
VB.NET Type |
Description |
Error |
int |
Integer |
Indicates the error code.(See also: Error code details) |
ErrorCategory |
int |
Integer |
Returns the category in which the error occurred (component/driver information). Please see About Error Events for more information. |
ErrorType |
int |
Integer |
Returns the type of error (method/property/event, etc.). Please see About Error Events for more information. |
Param |
int |
Integer |
Returns the parameters defined by ErrorCategory/ErrorType. Please see About Error Events for more information. |
Remarks
This event is used to acquire error information when an error occurs.