ValidationErrorCollection.Assert

Asserts a business rule - if condition is true it's added otherwise not.

public bool Assert(bool condition, string message, 
			string fieldName, string id)

Parameters

condition
If true this error is added. Otherwise not.

message
The message for this error

fieldName
Name of the UI field (optional) that this error relates to. Used optionally by the databinding classes.

id
An optional Error ID.

Overloads

See also