Classe System::ComponentModel::BackgroundWorker

BackgroundWorker class

Gli oggetti di questa classe devono essere allocati solo utilizzando la funzione System::MakeObject(). Non creare mai un’istanza di questo tipo sullo stack o usando l’operatore new, poiché ciò provocherà errori di runtime e/o fault di asserzione. Avvolgere sempre questa classe in un puntatore System::SmartPtr e utilizzare tale puntatore per passarlo alle funzioni come argomento.

class BackgroundWorker : public System::ComponentModel::Component

Metodi

MetodoDescrizione
BackgroundWorker()Informazioni RTTI.
get_WorkerReportsProgress() constRestituisce un valore che indica se il System::ComponentModel::BackgroundWorker può segnalare aggiornamenti di avanzamento.
ReportProgress(int)Genera l’evento System::ComponentModel::BackgroundWorker::ProgressChanged.
ReportProgress(int, const System::SharedPtr<System::Object>&)Genera l’evento System::ComponentModel::BackgroundWorker::ProgressChanged con l’oggetto userState.
RunWorkerAsync()Avvia l’esecuzione di un’operazione in background.
RunWorkerAsync(const System::SharedPtr<System::Object>&)Avvia l’esecuzione di un’operazione in background.
set_WorkerReportsProgress(bool)Imposta un valore che indica se il System::ComponentModel::BackgroundWorker può segnalare aggiornamenti di avanzamento.
~BackgroundWorker()Distruttore.

Vedi anche