System.IO.File.GetLastAccessTimeUtc C# (CSharp) Méthode

GetLastAccessTimeUtc() public static méthode

public static GetLastAccessTimeUtc ( string path ) : System.DateTime
path string
Résultat System.DateTime
        public static System.DateTime GetLastAccessTimeUtc(string path) { throw null; }
        public static System.DateTime GetLastWriteTime(string path) { throw null; }

Same methods

File::GetLastAccessTimeUtc ( String path ) : DateTime

Usage Example

    /// <summary>
    ///     Gets a specific file's last access time, in UTC.
    /// </summary>
    /// <param name="path">The path of the file.</param>
    /// <returns>
    ///     A <see cref="DateTime" /> in UTC.
    /// </returns>
    /// <exception cref="ArgumentNullException">
    ///     <paramref name="path" /> is <see langword="null" /> (<see langword="Nothing" /> in Visual Basic).
    /// </exception>
    public DateTime GetLastAccessTime(string path)
    {
        _ = Requires.NotNullOrWhiteSpace(
            path,
            nameof(path));

        return(FSFile.GetLastAccessTimeUtc(path));
    }
All Usage Examples Of System.IO.File::GetLastAccessTimeUtc