<PackageReference Include="System.ComponentModel.EventBasedAsync" Version="4.0.11-beta-23409" />

System.ComponentModel.AsyncCompletedEventArgs

Provides data for the MethodNameCompleted event.
public bool Cancelled { get; }

Gets a value indicating whether an asynchronous operation has been canceled.

public Exception Error { get; }

Gets a value indicating which error occurred during an asynchronous operation.

public object UserState { get; }

Gets the unique identifier for the asynchronous task.

public AsyncCompletedEventArgs(Exception error, bool cancelled, object userState)

Initializes a new instance of the AsyncCompletedEventArgs class.

protected void RaiseExceptionIfNecessary()

Raises a user-supplied exception if an asynchronous operation failed.