System::ComponentModel::AsyncCompletedEventArgs class
Contents
[
Hide
]AsyncCompletedEventArgs class
An instance of this class is passed as the argument on to the AsyncCompletedEventHandler delegate. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class AsyncCompletedEventArgs : public System::EventArgs
Methods
Method | Description |
---|---|
AsyncCompletedEventArgs() | Constructor. |
AsyncCompletedEventArgs(const System::Exception&, bool, const System::SharedPtr<System::Object>&) | Initializes a new instance of the System.ComponentModel.AsyncCompletedEventArgs class. |
get_Cancelled() const | Gets a value indicating whether an asynchronous operation has been canceled. true if the background operation has been canceled; otherwise false. The default is false. |
get_Error() const | Gets a value indicating which error occurred during an asynchronous operation. |
get_UserState() const | Gets the unique identifier for the asynchronous task. An object reference that uniquely identifies the asynchronous task; otherwise, null if no value has been set. |
Fields
Field | Description |
---|---|
static Empty | A static member that represents an “empty” EventArgs shared pointer (null-pointer). |
See Also
- Class EventArgs
- Namespace System::ComponentModel
- Library Aspose.Page for C++