ReportProgress()

BackgroundWorker::ReportProgress(int) method

Raises the System::ComponentModel::BackgroundWorker::ProgressChanged event.

void System::ComponentModel::BackgroundWorker::ReportProgress(int percentProgress)

Arguments

ParameterTypeDescription
percentProgressintThe percentage, from 0 to 100, of the background operation that is complete.

BackgroundWorker::ReportProgress(int, const System::SharedPtr<System::Object>&) method

Raises the System::ComponentModel::BackgroundWorker::ProgressChanged event with userState object.

void System::ComponentModel::BackgroundWorker::ReportProgress(int percentProgress, const System::SharedPtr<System::Object> &userState)

Arguments

ParameterTypeDescription
percentProgressintThe percentage, from 0 to 100, of the background operation that is complete.
userStateconst System::SharedPtr<System::Object>&The state object passed to System::ComponentModel::BackgroundWorker::RunWorkerAsync(System::Object).

See Also