WorkerReportsProgress Property
Collapse the table of content
Expand the table of content

BackgroundWorker.WorkerReportsProgress Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates whether the BackgroundWorker can report progress updates.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public bool WorkerReportsProgress { get; set; }

Property Value

Type: System.Boolean
true if the BackgroundWorker supports progress updates; otherwise false. The default is false.

Set the WorkerReportsProgress property to true if you want the BackgroundWorker to support progress updates. When this property is true, user code can call the ReportProgress method to raise the ProgressChanged event.

When this property is false, calling the ReportProgress method will cause an InvalidOperationException.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft