United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Product Families
Office
Windows
Windows Server System
Windows Mobile
Developer Tools
Business Solutions
Games & Xbox
MSN
Resources
Microsoft Update
Office Update
Download Center
Help & Support
Security
Volume Licensing
About Microsoft
Company Information
Investor Relations
PressPass for journalists
Popular Places
MSDN (Developers)
TechNet (IT Pros)
Microsoft At Home
Microsoft At Work
Business & Industry
Microsoft partners
Microsoft hardware
Product catalog
Mactopia
Microsoft.com site map
Popular Searches
Templates
ActiveSync
Clip art
Popular Downloads
Windows Defender Beta 2
DirectX End-User Runtime
More popular downloads
Welcome
|
Sign in
Search MSDN
Search Microsoft.com
Live Search
Developer Centers
MSDN Home
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 3.5
Please Wait
.NET Framework Class Library
Please Wait
System.IO Namespace
Please Wait
FileInfo Class
Please Wait
FileInfo Properties
Please Wait
Collapse All
Language Filter
Visual Basic
C#
C++
J#
JScript
XAML
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
.NET Framework Class Library
FileInfo Properties
Updated: November 2007
The
FileInfo
type exposes the following members.
Properties
Name
Description
Attributes
Gets or sets the
FileAttributes
of the current
FileSystemInfo
.
(Inherited from
FileSystemInfo
.)
CreationTime
Gets or sets the creation time of the current
FileSystemInfo
object.
(Inherited from
FileSystemInfo
.)
CreationTimeUtc
Gets or sets the creation time, in coordinated universal time (UTC), of the current
FileSystemInfo
object.
(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
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Manage Your Profile
|
Legal
|
Contact Us
|
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement