IsTrue Method

Project Mercury API

[This is preliminary documentation and is subject to change.]

Throws an InvalidOperationException if the specified expression evaluates to true.

Namespace:  ProjectMercury
Assembly:  ProjectMercury (in ProjectMercury.dll) Version: 3.1.0.0

Syntax

C#
public static void IsTrue(
	bool expression,
	string message
)
Visual Basic (Declaration)
Public Shared Sub IsTrue ( _
	expression As Boolean, _
	message As String _
)
Visual C++
public:
static void IsTrue(
	bool expression, 
	String^ message
)

Parameters

expression
Type: System..::.Boolean
The expression to evaluate.
message
Type: System..::.String
The error message.

See Also