Visual Basic (Declaration) | |
---|---|
Public Event Error As EventHandler(Of ErrorEventArgs) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ServiceAdministrator Dim handler As EventHandler(Of ErrorEventArgs) AddHandler instance.Error, handler |
C# | |
---|---|
public event EventHandler<ErrorEventArgs> Error |
Managed Extensions for C++ | |
---|---|
public: __event EventHandler<ErrorEventArgs*>* Error |
C++/CLI | |
---|---|
public: event EventHandler<ErrorEventArgs^>^ Error |
The event handler receives an argument of type ErrorEventArgs containing data related to this event. The following ErrorEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Error | Gets the error exception. |
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7