AsyncOperationProgressHandler<TResult,TProgress> Delegat

Definition

Stellt eine Methode dar, die Statusaktualisierungsereignisse eines asynchronen Vorgangs verarbeitet, der Statusaktualisierungen bereitstellt.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1432946946, 2731, 16922, 135, 120, 248, 206, 80, 38, 215, 88)]
template <typename TResult, typename TProgress>
class AsyncOperationProgressHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(1432946946, 2731, 16922, 135, 120, 248, 206, 80, 38, 215, 88)]
public delegate void AsyncOperationProgressHandler<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress> asyncInfo, TProgress progressInfo);
Public Delegate Sub AsyncOperationProgressHandler(Of TResult, TProgress)(asyncInfo As IAsyncOperationWithProgress(Of TResult, TProgress), progressInfo As TProgress)

Typparameter

TResult
TProgress

Parameter

asyncInfo
IAsyncOperationWithProgress<TResult,TProgress>

Der asynchronen Vorgang.

progressInfo
TProgress

Die Statusinformationen.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (eingeführt in v1.0)

Beispiele

Beispiel : C++/WinRT-Code , der veranschaulicht, wie das Progress-Ereignis behandelt wird, finden Sie unter Delegieren von Typen für asynchrone Aktionen und Vorgänge.

Gilt für: