Adds a validation error if the condition is true. Otherwise no item is added.
public bool Assert(bool Condition, string Message, string FieldName, string ID)
Return Value
value of condition
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:
public bool Assert(bool Condition, string Message)
public bool Assert(bool Condition, string Message, string FieldName)
public bool Assert(bool Condition, ValidationError Error)
See also:
Class ValidationErrorCollection© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic