Progress(T) Class
TOC
Collapse the table of content
Expand the table of content

Progress<T> Class

.NET Framework (current version)
 

Provides an IProgress<T> that invokes callbacks for each reported progress value.

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

System.Object
  System.Progress<T>

public class Progress<T> : IProgress<T>

Type Parameters

T

Specifies the type of the progress report value.

NameDescription
System_CAPS_pubmethodProgress<T>()

Initializes the Progress<T> object.

System_CAPS_pubmethodProgress<T>(Action<T>)

Initializes the Progress<T> object with the specified callback.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnReport(T)

Reports a progress change.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventProgressChanged

Raised for each reported progress value.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIProgress<T>.Report(T)

Reports a progress change.

Any handler provided to the constructor or event handlers registered with the ProgressChanged event are invoked through a SynchronizationContext instance captured when the instance is constructed. If there is no current SynchronizationContext at the time of construction, the callbacks will be invoked on the ThreadPool.

For more information and a code example, see the article Async in 4.5: Enabling Progress and Cancellation in Async APIs in the .NET Framework blog.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft