AsyncVoidMethodBuilder.SetException(Exception) Metod

Definition

Binder ett undantag till metodverktyget.

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

Parametrar

exception
Exception

Undantaget för bindning.

Undantag

exception är null.

Byggverktyget initieras inte.

Kommentarer

Den här typen och dess medlemmar är avsedda att användas av kompilatorn.

Gäller för