[ Team LiB ] Previous Section Next Section

FileSystemInfoCF 1.0, serializable, marshal by reference

System.IO (mscorlib.dll)abstract class

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, System.Runtime.Serialization.ISerializable {
// Protected Constructors
   protected FileSystemInfo( );
   protected FileSystemInfo(System.Runtime.Serialization.SerializationInfo info,
       System.Runtime.Serialization.StreamingContext context);
// Protected Instance Fields
   protected string FullPath;
   protected string OriginalPath;
// Public Instance Properties
   public FileAttributes Attributes{set; get; }
   public DateTime CreationTime{set; get; }
   public DateTime CreationTimeUtc{set; get; }
   public abstract bool Exists{get; }
   public string Extension{get; }
   public virtual string FullName{get; }
   public DateTime LastAccessTime{set; get; }
   public DateTime LastAccessTimeUtc{set; get; }
   public DateTime LastWriteTime{set; get; }
   public DateTime LastWriteTimeUtc{set; get; }
   public abstract string Name{get; }
// Public Instance Methods
   public abstract void Delete( );
   public virtual void GetObjectData(// implements ISerializable
        System.Runtime.Serialization.SerializationInfo info, 
        System.Runtime.Serialization.StreamingContext context);
   public void Refresh( );
}

Hierarchy

System.Object System.MarshalByRefObject FileSystemInfo(System.Runtime.Serialization.ISerializable)

Subclasses

DirectoryInfo, FileInfo

Returned By

DirectoryInfo.GetFileSystemInfos( )

    [ Team LiB ] Previous Section Next Section