Report.If(Boolean, String) 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.
Reports an error if a condition evaluates to true.
[System.Diagnostics.Conditional("DEBUG")]
public static void If (bool condition, string? message = default);
[<System.Diagnostics.Conditional("DEBUG")>]
static member If : bool * string -> unit
Public Shared Sub If (condition As Boolean, Optional message As String = Nothing)
Parameters
- condition
- Boolean
- message
- String
- Attributes