FileInfo MembersKentico 8.1 API Reference
The FileInfo type exposes the following members.
Constructors

  NameDescription
Public methodFileInfo
Initializes new instance of FileInfo.
Back to Top
Methods

  NameDescription
Public methodCopyTo(String)
Copies an existing file to a new file, allowing the overwriting of an existing file.
(Overrides FileInfo CopyTo(String).)
Public methodCopyTo(String, Boolean)
Copies an existing file to a new file, allowing the overwriting of an existing file.
(Overrides FileInfo CopyTo(String, Boolean).)
Public methodCreateText
Creates or opens a file for writing UTF-8 encoded text.
(Overrides FileInfo CreateText .)
Public methodDelete
Deletes file.
(Overrides FileInfo Delete .)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodMoveTo
Copies an existing file to a new file, allowing the overwriting of an existing file.
(Overrides FileInfo MoveTo(String).)
Public methodOpenRead
Opens file for reading.
(Overrides FileInfo OpenRead .)
Public methodOpenText
Creates stream which reads from file.
(Overrides FileInfo OpenText .)
Public methodToString
Converts FileInfo object to string.
(Overrides FileInfo ToString .)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldmSystemInfo
System.IO file info object corresponding to this file
(Inherited from FileInfo.)
Back to Top
Properties

  NameDescription
Public propertyAttributes
File attributes.
(Overrides FileInfo Attributes.)
Public propertyCreationTime
Creation date of file.
(Overrides FileInfo CreationTime.)
Public propertyDirectory
Directory of file.
(Overrides FileInfo Directory.)
Public propertyDirectoryName
Directory name of file (without path).
(Overrides FileInfo DirectoryName.)
Public propertyExists
If file exists.
(Overrides FileInfo Exists.)
Public propertyExtension
File extenstion.
(Overrides FileInfo Extension.)
Public propertyFullName
Full name of file (with whole path).
(Overrides FileInfo FullName.)
Public propertyIsReadOnly
If is read only.
(Overrides FileInfo IsReadOnly.)
Public propertyLastAccessTime
Creation date of file.
(Overrides FileInfo LastAccessTime.)
Public propertyLastWriteTime
Last wirte time to file.
(Overrides FileInfo LastWriteTime.)
Public propertyLength
Length of file.
(Overrides FileInfo Length.)
Public propertyName
File name of file (without path).
(Overrides FileInfo Name.)
Public propertySystemInfo
Returns system file info object.
(Overrides FileInfo SystemInfo.)
Back to Top
See Also