Report.IfNot 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
IfNot(Boolean, ValidationInterpolatedStringHandler) |
Reports an error if a condition does not evaluate to true. |
IfNot(Boolean, String) |
Reports an error if a condition does not evaluate to true. |
IfNot(Boolean, String, Object) |
Reports an error if a condition does not evaluate to true. |
IfNot(Boolean, String, Object[]) |
Reports an error if a condition does not evaluate to true. |
IfNot(Boolean, String, Object, Object) |
Reports an error if a condition does not evaluate to true. |
IfNot(Boolean, ValidationInterpolatedStringHandler)
Reports an error if a condition does not evaluate to 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)
Parameters
- condition
- Boolean
- message
- Microsoft.ValidationInterpolatedStringHandler
- Attributes
Applies to
IfNot(Boolean, String)
Reports an error if a condition does not evaluate to 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)
Parameters
- condition
- Boolean
- message
- String
- Attributes
Applies to
IfNot(Boolean, String, Object)
Reports an error if a condition does not evaluate to 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)
Parameters
- condition
- Boolean
- message
- String
- arg1
- Object
- Attributes
Applies to
IfNot(Boolean, String, Object[])
Reports an error if a condition does not evaluate to 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())
Parameters
- condition
- Boolean
- message
- String
- args
- Object[]
- Attributes
Applies to
IfNot(Boolean, String, Object, Object)
Reports an error if a condition does not evaluate to 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)
Parameters
- condition
- Boolean
- message
- String
- arg1
- Object
- arg2
- Object
- Attributes