语言

MockDialogInterface.Cancel 方法

定义

尝试取消对话,但此模拟实现将引发一个 UnsupportedOperationException。

[Android.Runtime.Register("cancel", "()V", "GetCancelHandler")]
public virtual void Cancel();
[<Android.Runtime.Register("cancel", "()V", "GetCancelHandler")>]
abstract member Cancel : unit -> unit
override this.Cancel : unit -> unit

实现

特性

例外

始终引发,因为此模拟实现是非功能性的。

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于