Updated: October 2010
Gets the FileAttributes of the file on the path.
Assembly: mscorlib (in mscorlib.dll)
path is empty, contains only white spaces, or contains invalid characters.
The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters.
path is in an invalid format.
path represents a file and is invalid, such as being on an unmapped drive, or the file cannot be found.
path represents a directory and is invalid, such as being on an unmapped drive, or the directory cannot be found.
This file is being used by another process.
The caller does not have the required permission.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.