System::ComponentModel::BackgroundWorker class

BackgroundWorker class

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 BackgroundWorker : public System::ComponentModel::Component

Methods

MethodDescription
BackgroundWorker()RTTI information.
get_WorkerReportsProgress() constGets a value indicating whether the System::ComponentModel::BackgroundWorker can report progress updates.
ReportProgress(int)Raises the System::ComponentModel::BackgroundWorker::ProgressChanged event.
ReportProgress(int, const System::SharedPtr<System::Object>&)Raises the System::ComponentModel::BackgroundWorker::ProgressChanged event with userState object.
RunWorkerAsync()Starts execution of a background operation.
RunWorkerAsync(const System::SharedPtr<System::Object>&)Starts execution of a background operation.
set_WorkerReportsProgress(bool)Sets a value indicating whether the System::ComponentModel::BackgroundWorker can report progress updates.
~BackgroundWorker()Destructor.

See Also