Bewerken

Share via


Progress<T> Constructors

Definition

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

Overloads

Progress<T>()

Initializes the Progress<T> object.

Progress<T>(Action<T>)

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

Progress<T>()

Source:
Progress.cs
Source:
Progress.cs
Source:
Progress.cs

Initializes the Progress<T> object.

public:
 Progress();
public Progress ();
Public Sub New ()

Applies to

Progress<T>(Action<T>)

Source:
Progress.cs
Source:
Progress.cs
Source:
Progress.cs

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

public:
 Progress(Action<T> ^ handler);
public Progress (Action<T> handler);
new Progress<'T> : Action<'T> -> Progress<'T>
Public Sub New (handler As Action(Of T))

Parameters

handler
Action<T>

A handler to invoke for each reported progress value. This handler will be invoked in addition to any delegates registered with the ProgressChanged event. Depending on the SynchronizationContext instance captured by the Progress<T> at construction, it is possible that this handler instance could be invoked concurrently with itself.

Exceptions

handler is null (Nothing in Visual Basic).

Applies to