AsyncVoidMethodBuilder.SetException(Exception) 方法
定义
将一个异常绑定到该方法生成器。Binds an exception to the method builder.
public:
void SetException(Exception ^ exception);
public void SetException (Exception exception);
member this.SetException : Exception -> unit
Public Sub SetException (exception As Exception)
参数
- exception
- Exception
要绑定的异常。The exception to bind.
例外
exception 为 null。exception is null.
未初始化该生成器。The builder is not initialized.
注解
此类型及其成员旨在供编译器使用。This type and its members are intended for use by the compiler.