TrySetException(Exception)
abstract
public abstract bool TrySetException(Exception exception) Attempts to transition the durable state to faulted with the specified exception.
Parameters
exceptionException- The exception which faults the task.
Returns
true if the state was transitioned; otherwise, false.