Name

FileSystemInfo

Synopsis

This serves as the base class for both FileInfo and DirectoryInfo, and allows access to the basic filesystem information relating to both.

public abstract class FileSystemInfo : MarshalByRefObject {
// Protected Constructors
   protected method FileSystemInfo();  
// Protected Instance Fields
   protected field string FullPath;  
   protected field string OriginalPath;  
// Public Instance Properties
   public field FileAttributes Attributes{set; get; } 
   public field DateTime CreationTime{set; get; } 
   public abstract field bool Exists{get; } 
   public field string Extension{get; } 
   public virtual field string FullName{get; } 
   public field DateTime LastAccessTime{set; get; } 
   public field DateTime LastWriteTime{set; get; } 
   public abstract field string Name{get; } 
// Public Instance Methods
   public abstract method void Delete();  
   public method void Refresh();  
}

Hierarchy

System.ObjectSystem.MarshalByRefObjectFileSystemInfo

Subclasses

DirectoryInfo, FileInfo

Returned By

DirectoryInfo.GetFileSystemInfos()

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.