Méthode | Description | |
---|---|---|
SetCanceled ( ) : void |
Transitions the underlying Task into the TaskStatus.Canceled state.
|
|
SetException ( |
Transitions the underlying Task into the TaskStatus.Faulted state.
|
|
SetException ( IEnumerable |
Transitions the underlying Task into the TaskStatus.Faulted state.
|
|
SetResult ( ) : void |
Transitions the underlying Task into the TaskStatus.RanToCompletion state.
|
|
TaskCompletionSource ( ) : System |
Initializes a new instance of the TaskCompletionSource class.
|
|
TaskCompletionSource ( TaskCreationOptions creationOptions ) : System |
Initializes a new instance of the TaskCompletionSource class with the specified options.
|
|
TaskCompletionSource ( object state ) : System |
Initializes a new instance of the TaskCompletionSource class with the specified state.
|
|
TaskCompletionSource ( object state, TaskCreationOptions creationOptions ) : System |
Initializes a new instance of the TaskCompletionSource class with the specified state and options.
|
|
TrySetCanceled ( ) : bool |
Attempts to transition the underlying Task into the TaskStatus.Canceled state.
|
|
TrySetException ( |
Attempts to transition the underlying Task into the TaskStatus.Faulted state.
|
|
TrySetException ( IEnumerable |
Attempts to transition the underlying Task into the TaskStatus.Faulted state.
|
|
TrySetResult ( ) : bool |
Attempts to transition the underlying Task into the TaskStatus.RanToCompletion state.
|
public SetException ( |
||
exception | The exception to bind to this |
|
Résultat | void |
public SetException ( IEnumerable |
||
exceptions | IEnumerable |
The collection of exceptions to bind to this |
Résultat | void |
public TaskCompletionSource ( TaskCreationOptions creationOptions ) : System | ||
creationOptions | TaskCreationOptions | The options to use when creating the underlying |
Résultat | System |
public TaskCompletionSource ( object state ) : System | ||
state | object | The state to use as the underlying |
Résultat | System |
public TaskCompletionSource ( object state, TaskCreationOptions creationOptions ) : System | ||
state | object | The state to use as the underlying |
creationOptions | TaskCreationOptions | The options to use when creating the underlying |
Résultat | System |
public TrySetException ( |
||
exception | The exception to bind to this |
|
Résultat | bool |
public TrySetException ( IEnumerable |
||
exceptions | IEnumerable |
The collection of exceptions to bind to this |
Résultat | bool |