Contract.Assert 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
Assert(Boolean) | |
Assert(Boolean, String) |
Assert(Boolean)
[System.Diagnostics.Conditional("DEBUG")]
public static void Assert (bool condition);
[<System.Diagnostics.Conditional("DEBUG")>]
static member Assert : bool -> unit
Public Shared Sub Assert (condition As Boolean)
Parameters
- condition
- Boolean
- Attributes
Applies to
Assert(Boolean, String)
[System.Diagnostics.Conditional("DEBUG")]
public static void Assert (bool condition, string message);
[<System.Diagnostics.Conditional("DEBUG")>]
static member Assert : bool * string -> unit
Public Shared Sub Assert (condition As Boolean, message As String)
Parameters
- condition
- Boolean
- message
- String
- Attributes