Report.IfNot 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
IfNot(Boolean, ValidationInterpolatedStringHandler) |
如果条件的计算结果不为 true,则报告错误。 |
IfNot(Boolean, String) |
如果条件的计算结果不为 true,则报告错误。 |
IfNot(Boolean, String, Object) |
如果条件的计算结果不为 true,则报告错误。 |
IfNot(Boolean, String, Object[]) |
如果条件的计算结果不为 true,则报告错误。 |
IfNot(Boolean, String, Object, Object) |
如果条件的计算结果不为 true,则报告错误。 |
IfNot(Boolean, ValidationInterpolatedStringHandler)
如果条件的计算结果不为 true,则报告错误。
[System.Diagnostics.Conditional("DEBUG")]
public static void IfNot (bool condition, ref Microsoft.ValidationInterpolatedStringHandler message);
[<System.Diagnostics.Conditional("DEBUG")>]
static member IfNot : bool * ValidationInterpolatedStringHandler -> unit
Public Shared Sub IfNot (condition As Boolean, ByRef message As ValidationInterpolatedStringHandler)
参数
- condition
- Boolean
- message
- Microsoft.ValidationInterpolatedStringHandler
- 属性
适用于
IfNot(Boolean, String)
如果条件的计算结果不为 true,则报告错误。
[System.Diagnostics.Conditional("DEBUG")]
public static void IfNot (bool condition, string? message = default);
[<System.Diagnostics.Conditional("DEBUG")>]
static member IfNot : bool * string -> unit
Public Shared Sub IfNot (condition As Boolean, Optional message As String = Nothing)
参数
- condition
- Boolean
- message
- String
- 属性
适用于
IfNot(Boolean, String, Object)
如果条件的计算结果不为 true,则报告错误。
public:
static void IfNot(bool condition, System::String ^ message, System::Object ^ arg1);
[System.Diagnostics.Conditional("DEBUG")]
public static void IfNot (bool condition, string message, object? arg1);
[<System.Diagnostics.Conditional("DEBUG")>]
static member IfNot : bool * string * obj -> unit
Public Shared Sub IfNot (condition As Boolean, message As String, arg1 As Object)
参数
- condition
- Boolean
- message
- String
- arg1
- Object
- 属性
适用于
IfNot(Boolean, String, Object[])
如果条件的计算结果不为 true,则报告错误。
public:
static void IfNot(bool condition, System::String ^ message, ... cli::array <System::Object ^> ^ args);
[System.Diagnostics.Conditional("DEBUG")]
public static void IfNot (bool condition, string message, params object?[] args);
[<System.Diagnostics.Conditional("DEBUG")>]
static member IfNot : bool * string * obj[] -> unit
Public Shared Sub IfNot (condition As Boolean, message As String, ParamArray args As Object())
参数
- condition
- Boolean
- message
- String
- args
- Object[]
- 属性
适用于
IfNot(Boolean, String, Object, Object)
如果条件的计算结果不为 true,则报告错误。
public:
static void IfNot(bool condition, System::String ^ message, System::Object ^ arg1, System::Object ^ arg2);
[System.Diagnostics.Conditional("DEBUG")]
public static void IfNot (bool condition, string message, object? arg1, object? arg2);
[<System.Diagnostics.Conditional("DEBUG")>]
static member IfNot : bool * string * obj * obj -> unit
Public Shared Sub IfNot (condition As Boolean, message As String, arg1 As Object, arg2 As Object)
参数
- condition
- Boolean
- message
- String
- arg1
- Object
- arg2
- Object
- 属性