Klasa ProgressWithCompletion<T>
Przyrostowego postępu zgłoszenie mechanizm, który umożliwia asynchroniczne oczekujące na wszystkich raportów, które mają być przetwarzane.
Hierarchia dziedziczenia
Object
Microsoft.VisualStudio.Threading.ProgressWithCompletion<T>
Przestrzeń nazw: Microsoft.VisualStudio.Threading
Zestaw: Microsoft.VisualStudio.Threading (w Microsoft.VisualStudio.Threading.dll)
Składnia
'Deklaracja
Public Class ProgressWithCompletion(Of T) _
Implements IProgress(Of T)
public class ProgressWithCompletion<T> : IProgress<T>
generic<typename T>
public ref class ProgressWithCompletion : IProgress<T>
type ProgressWithCompletion<'T> =
class
interface IProgress<'T>
end
Język JScript nie obsługuje typów ani metod ogólnych.
Parametry typów
- T
< nazwa typeparam = "T" > typ wiadomości wysyłanych w aktualizacji postępu. </typeparam>
Typ ProgressWithCompletion<T> uwidacznia następujące elementy członkowskie.
Konstruktorzy
Nazwa | Opis | |
---|---|---|
![]() |
ProgressWithCompletion<T>(Action<T>) | Inicjuje nowe wystąpienie ProgressWithCompletion. |
![]() |
ProgressWithCompletion<T>(Func<T, Task>) | Inicjuje nowe wystąpienie ProgressWithCompletion. |
Początek
Metody
Nazwa | Opis | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Odziedziczone z Object). |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object). |
![]() |
GetHashCode | Serves as the default hash function. (Odziedziczone z Object). |
![]() |
GetType | Gets the Type of the current instance. (Odziedziczone z Object). |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Odziedziczone z Object). |
![]() |
ToString | Returns a string that represents the current object. (Odziedziczone z Object). |
![]() |
WaitAsync | Zwraca wartość dopełniającej po wykonaniu wszystkich zgłoszonych postępu zadania. |
Początek
Jawne implementacje interfejsu
Nazwa | Opis | |
---|---|---|
![]() ![]() |
IProgress<T>.Report | Odbiera aktualizacji postępu. |
Początek
Bezpieczeństwo wątku
Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.