Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))

Directory.GetCreationTime Method

Class

System.IO.Directory

Syntax

Dim result As Date = Directory.GetCreationTime(path)

path (required; String)

A valid path to be examined for a creation time

Description

Indicates the date and time when a given directory was first created

Usage at a Glance

  • path can be either an absolute path or a relative path from the current directory.

  • path can be either a path on the local system, the path of a mapped network drive, or a UNC path.

  • path cannot contain wildcard characters.

Version Differences

Visual Basic 2005 includes a My.Computer.FileSystem.GetDirectoryInfo method that provides access to detailed information about a directory.

Категории