AsyncVoidMethodBuilder.SetException(Exception) Méthode

Définition

Lie une exception au générateur de méthode.

public:
 void SetException(Exception ^ exception);
public void SetException (Exception exception);
member this.SetException : Exception -> unit
Public Sub SetException (exception As Exception)

Paramètres

exception
Exception

Exception à lier.

Exceptions

exception a la valeur null.

Le générateur n’est pas initialisé.

Remarques

Ce type et ses membres sont destinés à être utilisés par le compilateur.

S’applique à