Validates the data set in the contact's properties against cross-property business rules. I any errors are found Validate
will return false and the Asi.iBO.Errors property should be checked for details. Validate can be called at any
time to check for errors but it will automatically be called at save time.
Namespace:
Asi.iBO.ContactManagementAssembly: Asi.iBO (in Asi.iBO.dll) Version: 15.1.2.0
Syntax
| C# |
|---|
public bool Validate( DataServer server ) |
| Visual Basic (Declaration) |
|---|
Public Function Validate ( _ server As DataServer _ ) As Boolean |
| Visual C++ |
|---|
public: bool Validate( DataServer^ server ) |
Parameters
- server
- Type: Asi.iBO..::.DataServer
The DataServer to use to communicate with the database.
Return Value
True if the Contact passes all business rules or only warnings are found, false if any errors are found.
Remarks
Warnings will be recorded in the Errors property but won't cause this method to return false.