Professional ASP.NET 1.1 [Electronic resources]

Alex Homeret

نسخه متنی -صفحه : 244/ 210
نمايش فراداده

Changes in the System.IO Namespace

The

System.IO.File and

System.IO.Directory classes gain six new methods for handling file timestamps in UTC format:

GetCreationTimeUtc ,

GetLastAccessTimeUtc ,

GetLastWriteTimeUtc ,

SetCreationTimeUtc ,

SetLastAccessTimeUtc and

SetLastWriteTimeUtc .

The

System.IO.FileInfo ,

System.IO.FileSystemInfo and

System.IO.DirectoryInfo classes gain three new read/write properties:

CreationTimeUtc ,

LastAccessTimeUtc and

LastWriteTimeUtc .

The

System.IO.Path.GetDirectoryName method now correctly returns the current folder for a path that ends with "

\. " (a backslash and a single period), instead of returning the parent folder as it did In version 1.0.