Assumes.False 方法

定义

重载

False(Boolean, ValidationInterpolatedStringHandlerInvertedCondition)

如果条件的计算结果为 true,则引发公共异常。

False(Boolean, String)

如果条件的计算结果为 true,则引发公共异常。

False(Boolean, String, Object)

如果条件的计算结果为 true,则引发公共异常。

False(Boolean, String, Object[])

如果条件的计算结果为 true,则引发公共异常。

False(Boolean, ValidationInterpolatedStringHandlerInvertedCondition)

如果条件的计算结果为 true,则引发公共异常。

[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void False (bool condition, ref Microsoft.ValidationInterpolatedStringHandlerInvertedCondition message);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member False : bool * ValidationInterpolatedStringHandlerInvertedCondition -> unit
Public Shared Sub False (condition As Boolean, ByRef message As ValidationInterpolatedStringHandlerInvertedCondition)

参数

condition
Boolean
message
Microsoft.ValidationInterpolatedStringHandlerInvertedCondition
属性

适用于

False(Boolean, String)

如果条件的计算结果为 true,则引发公共异常。

[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void False (bool condition, string? message = default);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member False : bool * string -> unit
Public Shared Sub False (condition As Boolean, Optional message As String = Nothing)

参数

condition
Boolean
message
String
属性

适用于

False(Boolean, String, Object)

如果条件的计算结果为 true,则引发公共异常。

public:
 static void False(bool condition, System::String ^ unformattedMessage, System::Object ^ arg1);
[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void False (bool condition, string unformattedMessage, object? arg1);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member False : bool * string * obj -> unit
Public Shared Sub False (condition As Boolean, unformattedMessage As String, arg1 As Object)

参数

condition
Boolean
unformattedMessage
String
arg1
Object
属性

适用于

False(Boolean, String, Object[])

如果条件的计算结果为 true,则引发公共异常。

public:
 static void False(bool condition, System::String ^ unformattedMessage, ... cli::array <System::Object ^> ^ args);
[System.Diagnostics.DebuggerStepThrough]
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static void False (bool condition, string unformattedMessage, params object?[] args);
[<System.Diagnostics.DebuggerStepThrough>]
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")>]
static member False : bool * string * obj[] -> unit
Public Shared Sub False (condition As Boolean, unformattedMessage As String, ParamArray args As Object())

参数

condition
Boolean
unformattedMessage
String
args
Object[]
属性

适用于