System::ComponentModel::AsyncCompletedEventArgs class

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

MethodDescription
AsyncCompletedEventArgs()Constructor.
AsyncCompletedEventArgs(const System::Exception&, bool, const System::SharedPtr<System::Object>&)Initializes a new instance of the System.ComponentModel.AsyncCompletedEventArgs class.
get_Cancelled() constGets 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() constGets a value indicating which error occurred during an asynchronous operation.
get_UserState() constGets 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

FieldDescription
static EmptyA static member that represents an “empty” EventArgs shared pointer (null-pointer).

See Also