Visual Basic (Declaration) | |
---|---|
Public Event Completed As EventHandler(Of AsyncEventArgs) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As BaseOperation Dim handler As EventHandler(Of AsyncEventArgs) AddHandler instance.Completed, handler |
C# | |
---|---|
public event EventHandler<AsyncEventArgs> Completed |
C++/CLI | |
---|---|
public: event EventHandler<AsyncEventArgs^>^ Completed |
The event handler receives an argument of type AsyncEventArgs containing data related to this event. The following AsyncEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancelled | Returns whether the operation was cancelled. |
CompletedSuccessfully | Returns whether the operation completed successfully. |
CompletedSynchronously | Returns whether the operation was completed synchronously. |
Error | The exception, if any, thrown by the underlying operation. |
HasError | Returns whether the operation failed. |
IsCompleted | Returns whether the operation completed. |
IsErrorHandled | Whether the Error was handled ( if one exists). |
IsUnavailable | Internal use only. |
UserState | Uniquely identifies the asynchronous operation. |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family