AsyncVoidMethodBuilder.SetException(Exception) Metodo

Definizione

Associa un'eccezione al generatore di metodi.

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

Parametri

exception
Exception

Eccezione da associare.

Eccezioni

exception è null.

Il generatore non viene inizializzato.

Commenti

Questo tipo e i relativi membri sono destinati all'uso da parte del compilatore.

Si applica a