Adds a validation error if the condition is true. Otherwise no item is added.
public bool Assert(bool Condition, string Message, string FieldName)
Return Value
string
Parameters
Condition
If true the Validation Error is added.
Message
The Error Message for this error.
FieldName
Overloads:
public bool Assert(bool Condition, string Message, string FieldName, string ID)
public bool Assert(bool Condition, string Message)
public bool Assert(bool Condition, ValidationError Error)
See also:
Class ValidationErrorCollection© West Wind Technologies, 1996-2024 • Updated: 06/29/24
Comment or report problem with topic