System.IO.Abstractions.FileBase.GetAttributes C# (CSharp) Méthode

GetAttributes() public abstract méthode

Gets the FileAttributes of the file on the 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. is in an invalid format. represents a file and is invalid, such as being on an unmapped drive, or the file cannot be found. 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.
public abstract GetAttributes ( string path ) : FileAttributes
path string The path to the file.
Résultat FileAttributes
        public abstract FileAttributes GetAttributes(string path);