AsyncOperationWithProgressCompletedHandler<TResult,TProgress> Delegat

Definition

Stellt eine Methode dar, die das abgeschlossene Ereignis eines asynchronen Vorgangs behandelt, der Statusaktualisierungen bereitstellt.

/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3898471453, 27303, 18147, 168, 226, 240, 9, 216, 64, 198, 39)]
template <typename TResult, typename TProgress>
class AsyncOperationWithProgressCompletedHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(3898471453, 27303, 18147, 168, 226, 240, 9, 216, 64, 198, 39)]
public delegate void AsyncOperationWithProgressCompletedHandler<TResult,TProgress>(IAsyncOperationWithProgress<TResult,TProgress> asyncInfo, AsyncStatus asyncStatus);
Public Delegate Sub AsyncOperationWithProgressCompletedHandler(Of TResult, TProgress)(asyncInfo As IAsyncOperationWithProgress(Of TResult, TProgress), asyncStatus As AsyncStatus)

Typparameter

TResult
TProgress

Parameter

asyncInfo
IAsyncOperationWithProgress<TResult,TProgress>

Der asynchronen Vorgang.

asyncStatus
AsyncStatus

Einer der Enumerationswerte.

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 zur Veranschaulichung der Behandlung des Completed-Ereignisses finden Sie unter Delegieren von Typen für asynchrone Aktionen und Vorgänge.

Gilt für: