O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required