Xceed .NET Libraries Documentation
EnsureDateIsValid Method (FileSystemItem)


Xceed.FileSystem Assembly > Xceed.FileSystem Namespace > FileSystemItem Class : EnsureDateIsValid Method
The System.DateTime value to validate.
Ensures that the System.DateTime value is valid.
Syntax
'Declaration
 
Protected Overridable Sub EnsureDateIsValid( _
   ByVal value As Date _
) 
'Usage
 
Dim instance As FileSystemItem
Dim value As Date
 
instance.EnsureDateIsValid(value)
protected virtual void EnsureDateIsValid( 
   DateTime value
)

Parameters

value
The System.DateTime value to validate.
Remarks
This method should be overridden only in the case where the physical item ( file or folder ) supports a specific date/time interval for our System.DateTime values ( creation, modified, accessed ). In that case, System.DateTime.MinValue should be supported since it indicates that no date was specified.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FileSystemItem Class
FileSystemItem Members