System.IO.Directory.GetCreationTimeUtc C# (CSharp) 메소드

GetCreationTimeUtc() 공개 정적인 메소드

public static GetCreationTimeUtc ( string path ) : System.DateTime
path string
리턴 System.DateTime
        public static System.DateTime GetCreationTimeUtc(string path) { throw null; }
        public static string GetCurrentDirectory() { throw null; }

Usage Example

예제 #1
0
    /// <summary>
    ///     Gets a specific directory's creation time, in UTC.
    /// </summary>
    /// <param name="path">The path of the directory.</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 GetCreationTime(string path)
    {
        _ = Requires.NotNullOrWhiteSpace(
            path,
            nameof(path));

        return(FSDir.GetCreationTimeUtc(path));
    }
All Usage Examples Of System.IO.Directory::GetCreationTimeUtc