Partager via


Contract.Assert Méthode

Définition

Surcharges

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)

Paramètres

condition
Boolean
Attributs

S’applique à

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)

Paramètres

condition
Boolean
message
String
Attributs

S’applique à