FileInfo Properties
MSDN Home
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
.NET Framework Class Library
System.IO Namespace
FileInfo Class
FileInfo Properties
Directory Property
DirectoryName Property
Exists Property
IsReadOnly Property
Length Property
Name Property
FileInfo Class
FileInfo Members
FileInfo Constructor
FileInfo Fields
FileInfo Methods
FileInfo Properties
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
FileInfo Properties
The
FileInfo
type exposes the following members.
Properties
Name
Description
Attributes
Gets or sets the current directory or file.
(Inherited from
FileSystemInfo
.)
CreationTime
Gets or sets the creation time of the current directory or file.
(Inherited from
FileSystemInfo
.)
CreationTimeUtc
Gets or sets the creation time, in coordinated universal time (UTC), of the current directory or file.
(Inherited from
FileSystemInfo
.)
Directory
Gets an instance of the parent directory.
DirectoryName
Gets a string representing the directory's full path.
Exists
Gets a value indicating whether a file exists.
(Overrides
FileSystemInfo
.
.
::
.
Exists
.)
Extension
Gets the string representing the extension part of the file.
(Inherited from
FileSystemInfo
.)
FullName
Gets the full path of the directory or file.
(Inherited from
FileSystemInfo
.)
IsReadOnly
Gets or sets a value that determines if the current file is read only.
LastAccessTime
Gets or sets the time the current file or directory was last accessed.
(Inherited from
FileSystemInfo
.)
LastAccessTimeUtc
Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
(Inherited from
FileSystemInfo
.)
LastWriteTime
Gets or sets the time when the current file or directory was last written to.
(Inherited from
FileSystemInfo
.)
LastWriteTimeUtc
Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
(Inherited from
FileSystemInfo
.)
Length
Gets the size, in bytes, of the current file.
Name
Gets the name of the file.
(Overrides
FileSystemInfo
.
.
::
.
Name
.)
Top
See Also
Reference
FileInfo Class
System.IO Namespace
Tags :