Validates that a DateTime is a time in the past (a tolerance of 2 minutes is set).
Namespace: Nehta.VendorLibrary.CommonAssembly: Nehta.VendorLibrary.Common (in Nehta.VendorLibrary.Common.dll) Version: 3.0.2.0 (1.0.0.0)
Syntax
C# |
---|
public static void ValidatePastDateTime( string name, DateTime value, bool required ) |
Visual Basic |
---|
Public Shared Sub ValidatePastDateTime ( _ name As String, _ value As DateTime, _ required As Boolean _ ) |
Visual C++ |
---|
public: static void ValidatePastDateTime( String^ name, DateTime value, bool required ) |
Parameters
- name
- Type: System..::..String
The name of the argument to validate.
- value
- Type: System..::..DateTime
The value of the argument to validate.
- required
- Type: System..::..Boolean
Indicates if the argument is required.