Partager via


Debug.Assert Méthode

Définition

Surcharges

Assert(Boolean)
Assert(Boolean, String, Object[])

Assert(Boolean)

public:
 static void Assert(bool cond);
[System.Diagnostics.Conditional("DEBUG")]
public static void Assert (bool cond);
static member Assert : bool -> unit
Public Shared Sub Assert (cond As Boolean)

Paramètres

cond
Boolean
Attributs

S’applique à

Assert(Boolean, String, Object[])

public:
 static void Assert(bool cond, System::String ^ format, ... cli::array <System::Object ^> ^ args);
[System.Diagnostics.Conditional("DEBUG")]
public static void Assert (bool cond, string format, params object[] args);
static member Assert : bool * string * obj[] -> unit
Public Shared Sub Assert (cond As Boolean, format As String, ParamArray args As Object())

Paramètres

cond
Boolean
format
String
args
Object[]
Attributs

S’applique à