CodeAccessPermission.RevertAssert 方法

定义

导致删除当前帧之前 Assert() 的任何帧,并且不再生效。

public:
 static void RevertAssert();
public static void RevertAssert();
static member RevertAssert : unit -> unit
Public Shared Sub RevertAssert ()

例外

当前帧没有以前的 Assert() 版本。

注解

如果当前帧不存在 Assert ,则会引发一个 ExecutionEngineException

适用于