Assumes.True Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
True(Boolean, ValidationInterpolatedStringHandler) |
Throws an public exception if a condition evaluates to false. |
True(Boolean, String) |
Throws an public exception if a condition evaluates to false. |
True(Boolean, String, Object) |
Throws an public exception if a condition evaluates to false. |
True(Boolean, String, Object[]) |
Throws an public exception if a condition evaluates to false. |
True(Boolean, ValidationInterpolatedStringHandler)
Throws an public exception if a condition evaluates to 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)
Parameters
- condition
- Boolean
- message
- Microsoft.ValidationInterpolatedStringHandler
- Attributes
Applies to
True(Boolean, String)
Throws an public exception if a condition evaluates to 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)
Parameters
- condition
- Boolean
- message
- String
- Attributes
Applies to
True(Boolean, String, Object)
Throws an public exception if a condition evaluates to 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)
Parameters
- condition
- Boolean
- unformattedMessage
- String
- arg1
- Object
- Attributes
Applies to
True(Boolean, String, Object[])
Throws an public exception if a condition evaluates to 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())
Parameters
- condition
- Boolean
- unformattedMessage
- String
- args
- Object[]
- Attributes