Click or drag to resize
FileInfo Class
Envelope for System.IO.FileInfo class.
Inheritance Hierarchy
SystemObject
  CMS.IOFileInfo
    CMS.FileSystemStorageFileInfo

Namespace: CMS.FileSystemStorage
Assembly: CMS.IO (in CMS.IO.dll) Version: 12.0.0
Syntax
C#
public class FileInfo : FileInfo

The FileInfo type exposes the following members.

Constructors
  NameDescription
Public methodFileInfo
Initializes new instance of FileInfo.
Top
Fields
  NameDescription
Protected fieldmSystemInfo
System.IO file info object corresponding to this file
(Inherited from FileInfo.)
Top
Properties
  NameDescription
Public propertyAttributes
File attributes.
(Overrides FileInfoAttributes.)
Public propertyCreationTime
Creation date of file.
(Overrides FileInfoCreationTime.)
Public propertyDirectory
Directory of file.
(Overrides FileInfoDirectory.)
Public propertyDirectoryName
Directory name of file (without path).
(Overrides FileInfoDirectoryName.)
Public propertyExists
If file exists.
(Overrides FileInfoExists.)
Public propertyExtension
File extension.
(Overrides FileInfoExtension.)
Public propertyFullName
Full name of file (with whole path).
(Overrides FileInfoFullName.)
Public propertyIsReadOnly
If is read only.
(Overrides FileInfoIsReadOnly.)
Public propertyLastAccessTime
Creation date of file.
(Overrides FileInfoLastAccessTime.)
Public propertyLastWriteTime
Last write time to file.
(Overrides FileInfoLastWriteTime.)
Public propertyLength
Length of file.
(Overrides FileInfoLength.)
Public propertyName
File name of file (without path).
(Overrides FileInfoName.)
Public propertySystemInfo
Returns system file info object.
(Overrides FileInfoSystemInfo.)
Top
Methods
  NameDescription
Public methodCopyTo(String)
Copies current file to destination.
(Inherited from FileInfo.)
Public methodCopyTo(String, Boolean)
Copies current file to destination.
(Inherited from FileInfo.)
Protected methodCopyToInternal
Copies an existing file to a new file, allowing the overwriting of an existing file.
(Overrides FileInfoCopyToInternal(String, Boolean).)
Public methodCreateText
Creates or opens a file for writing UTF-8 encoded text.
(Inherited from FileInfo.)
Protected methodCreateTextInternal
Creates or opens a file for writing UTF-8 encoded text.
(Overrides FileInfoCreateTextInternal.)
Public methodDelete
Deletes file.
(Inherited from FileInfo.)
Protected methodDeleteInternal
Deletes file.
(Overrides FileInfoDeleteInternal.)
Public methodMoveTo
Moves an existing file to a new file.
(Inherited from FileInfo.)
Protected methodMoveToInternal
Copies an existing file to a new file, allowing the overwriting of an existing file.
(Overrides FileInfoMoveToInternal(String).)
Public methodOpenRead
Creates a read-only ICMSFileStream.
(Inherited from FileInfo.)
Protected methodOpenReadInternal
Opens file for reading.
(Overrides FileInfoOpenReadInternal.)
Public methodOpenText
Creates a StreamReader with UTF8 encoding that reads from an existing text file.
(Inherited from FileInfo.)
Protected methodOpenTextInternal
Creates stream which reads from file.
(Overrides FileInfoOpenTextInternal.)
Public methodToString
Converts FileInfo object to string.
(Overrides ObjectToString.)
Top
See Also