AsyncVoidMethodBuilder.SetException(Exception) 方法

定義

將例外狀況繫結至方法建立幫手。

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

參數

exception
Exception

要繫結的例外狀況。

例外狀況

exceptionnull

產生器未初始化。

備註

此類型及其成員供編譯器使用。

適用於