Progress<T> Construtores

Definição

Inicializa o objeto Progress<T> ou inicializa o objeto Progress<T> com o retorno de chamada especificado.Initializes the Progress<T> object or initializes the Progress<T> object with the specified callback.

Sobrecargas

Progress<T>()

Inicializa o objeto Progress<T>.Initializes the Progress<T> object.

Progress<T>(Action<T>)

Inicializa o objeto Progress<T> com o retorno de chamada especificado.Initializes the Progress<T> object with the specified callback.

Progress<T>()

Inicializa o objeto Progress<T>.Initializes the Progress<T> object.

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

Aplica-se a

Progress<T>(Action<T>)

Inicializa o objeto Progress<T> com o retorno de chamada especificado.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))

Parâmetros

handler
Action<T>

Um manipulador a ser invocado para cada valor de progresso relatado.A handler to invoke for each reported progress value. Esse manipulador será invocado além de quaisquer representantes registrados com o evento ProgressChanged.This handler will be invoked in addition to any delegates registered with the ProgressChanged event. Dependendo da instância SynchronizationContext capturada pelo Progress<T> na construção, é possível que essa instância de manipulador possa ser invocada simultaneamente em si.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.

Exceções

handler é null (Nothing no Visual Basic).handler is null (Nothing in Visual Basic).

Aplica-se a