Compartilhar via


Contract.Assert Método

Definição

Sobrecargas

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)

Parâmetros

condition
Boolean
Atributos

Aplica-se a

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)

Parâmetros

condition
Boolean
message
String
Atributos

Aplica-se a