Report 类

定义

公共运行时检查跟踪消息并调用断言失败, 但不引发异常

public ref class Report abstract sealed
public static class Report
type Report = class
Public Class Report
继承
Report

方法

Fail(String)

报告特定故障。

Fail(String, Object[])

报告特定故障。

If(Boolean, String)

如果条件的计算结果为 true,则报告错误。

IfNot(Boolean, String)

如果条件的计算结果不为 true,则报告错误。

IfNot(Boolean, String, Object)

如果条件的计算结果不为 true,则报告错误。

IfNot(Boolean, String, Object, Object)

如果条件的计算结果不为 true,则报告错误。

IfNot(Boolean, String, Object[])

如果条件的计算结果不为 true,则报告错误。

IfNot(Boolean, ValidationInterpolatedStringHandler)

如果条件的计算结果不为 true,则报告错误。

IfNotPresent<T>(T)

验证值是否不为 null,并报告有关缺少 MEF 组件的错误。

适用于