Contract.Assert Method

Definition

Overloads

Assert(Boolean)

C#
[System.Diagnostics.Conditional("DEBUG")]
public static void Assert(bool condition);

Parameters

condition
Boolean
Attributes

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

Assert(Boolean, String)

C#
[System.Diagnostics.Conditional("DEBUG")]
public static void Assert(bool condition, string message);

Parameters

condition
Boolean
message
String
Attributes

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview