This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can trysigning in orchanging directories.
Access to this page requires authorization. You can trychanging directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides anIProgress<T> that invokes callbacks for each reported progress value.
generic <typename T>public ref class Progress : IProgress<T>public class Progress<T> : IProgress<T>type Progress<'T> = class interface IProgress<'T>Public Class Progress(Of T)Implements IProgress(Of T)Specifies the type of the progress report value.
Any handler provided to the constructor or event handlers registered with theProgressChanged event are invoked through aSynchronizationContext instance captured when the instance is constructed. If there is no currentSynchronizationContext at the time of construction, the callbacks will be invoked on theThreadPool.
For more information and a code example, see the articleAsync in 4.5: Enabling Progress and Cancellation in Async APIs in the .NET Framework blog.
| Name | Description |
|---|---|
| Progress<T>() | Initializes theProgress<T> object. |
| Progress<T>(Action<T>) | Initializes theProgress<T> object with the specified callback. |
| Name | Description |
|---|---|
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited fromObject) |
| GetHashCode() | Serves as the default hash function. (Inherited fromObject) |
| GetType() | Gets theType of the current instance. (Inherited fromObject) |
| MemberwiseClone() | Creates a shallow copy of the currentObject. (Inherited fromObject) |
| OnReport(T) | Reports a progress change. |
| ToString() | Returns a string that represents the current object. (Inherited fromObject) |
| Name | Description |
|---|---|
| ProgressChanged | Raised for each reported progress value. |
| Name | Description |
|---|---|
| IProgress<T>.Report(T) | Reports a progress change. |
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?
Was this page helpful?
Want to try using Ask Learn to clarify or guide you through this topic?