Debug.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, 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)
Parameters
- cond
- Boolean
- Attributes
Applies to
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())
Parameters
- cond
- Boolean
- format
- String
- args
- Object[]
- Attributes