OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Server.MCommon.Validation.TValidationControlHelper Class Reference

Contains helper functions for the shared validation of data, specific to Controls. More...

Static Public Member Functions

static TVerificationResult IsNotInvalidDate (DateTime? ADate, String ADescription, TVerificationResultCollection AVerificationResultCollection, bool ATreatNullAsInvalid=false, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks wheter a given DateTime is an invalid date. A check whether it is an undefined DateTime is always performed. More...
 

Detailed Description

Contains helper functions for the shared validation of data, specific to Controls.

Member Function Documentation

◆ IsNotInvalidDate()

static TVerificationResult Ict.Petra.Server.MCommon.Validation.TValidationControlHelper.IsNotInvalidDate ( DateTime?  ADate,
String  ADescription,
TVerificationResultCollection  AVerificationResultCollection,
bool  ATreatNullAsInvalid = false,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks wheter a given DateTime is an invalid date. A check whether it is an undefined DateTime is always performed.

Returns
Null if validation succeeded, otherwise a TVerificationResult is returned that contains details about the problem.

The documentation for this class was generated from the following file: