Udostępnij za pośrednictwem


Assumes.True Metoda

Definicja

Przeciążenia

True(Boolean, ValidationInterpolatedStringHandler)

Zgłasza wyjątek publiczny, jeśli warunek daje wartość false.

True(Boolean, String)

Zgłasza wyjątek publiczny, jeśli warunek daje wartość false.

True(Boolean, String, Object)

Zgłasza wyjątek publiczny, jeśli warunek daje wartość false.

True(Boolean, String, Object[])

Zgłasza wyjątek publiczny, jeśli warunek daje wartość false.

True(Boolean, ValidationInterpolatedStringHandler)

Zgłasza wyjątek publiczny, jeśli warunek daje wartość false.

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

Parametry

condition
Boolean
message
Microsoft.ValidationInterpolatedStringHandler
Atrybuty

Dotyczy

True(Boolean, String)

Zgłasza wyjątek publiczny, jeśli warunek daje wartość false.

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

Parametry

condition
Boolean
message
String
Atrybuty

Dotyczy

True(Boolean, String, Object)

Zgłasza wyjątek publiczny, jeśli warunek daje wartość false.

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

Parametry

condition
Boolean
unformattedMessage
String
arg1
Object
Atrybuty

Dotyczy

True(Boolean, String, Object[])

Zgłasza wyjątek publiczny, jeśli warunek daje wartość false.

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

Parametry

condition
Boolean
unformattedMessage
String
args
Object[]
Atrybuty

Dotyczy