Click or drag to resize

FileSystemInfo Class

Provides the base class for both FileInfo and DirectoryInfo objects.
Inheritance Hierarchy

Namespace:  Alphaleonis.Win32.Filesystem
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
[SerializableAttribute]
public abstract class FileSystemInfo : MarshalByRefObject

The FileSystemInfo type exposes the following members.

Constructors
  NameDescription
Protected methodFileSystemInfo
Initializes a new instance of the FileSystemInfo class
Top
Properties
  NameDescription
Public propertyAttributes
Gets or sets the attributes for the current file or directory.
Public propertyCreationTime
Gets or sets the creation time of the current file or directory.
Public propertyCreationTimeUtc
Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory.
Protected propertyDisplayPath
Returns the path as a string.
Public propertyEntryInfo
[AlphaFS] Gets the instance of the FileSystemEntryInfo class.
Public propertyExists
Gets a value indicating whether the file or directory exists.
Public propertyExtension
Gets the string representing the extension part of the file.
Public propertyFullName
Gets the full path of the directory or file.
Protected propertyIsDirectory
[AlphaFS] The initial "IsDirectory" indicator that was passed to the constructor.
Public propertyLastAccessTime
Gets or sets the time the current file or directory was last accessed.
Public propertyLastAccessTimeUtc
Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
Public propertyLastWriteTime
Gets or sets the time when the current file or directory was last written to.
Public propertyLastWriteTimeUtc
Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
Protected propertyLongFullName
The full path of the file system object in Unicode (LongPath) format.
Public propertyName
For files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists.

Otherwise, the Name property gets the name of the directory.

Protected propertyTransaction
[AlphaFS] Represents the KernelTransaction that was passed to the constructor.
Top
Methods
  NameDescription
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDelete
Deletes a file or directory.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodRefresh
Refreshes the state of the object.
Protected methodRefreshEntryInfo
Refreshes the state of the FileSystemEntryInfo EntryInfo instance.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator ==
Public operatorStatic memberInequality
Implements the operator !=
Top
Fields
  NameDescription
Protected fieldFullPath
Represents the fully qualified path of the file or directory.
Protected fieldOriginalPath
The path originally specified by the user, whether relative or absolute.
Top
See Also