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

  NameDescription
Public methodFileInfo
Initializes new instance of
Back to Top
Methods

  NameDescription
Public methodCopyTo(String)
Copies current file to destination.
(Overrides FileInfo CopyTo(String).)
Public methodCopyTo(String, Boolean)
Copies current file to destination.
(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
Moves an existing file to a new file.
(Overrides FileInfo MoveTo(String).)
Public methodOpenRead
Creates a read-only ICMSFileStream.
(Overrides FileInfo OpenRead .)
Public methodOpenText
Creates a StreamReader with UTF8 encoding that reads from an existing text file.
(Overrides FileInfo OpenText .)
Public methodToString
Converts current info 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.
(Overrides FileInfo DirectoryName.)
Public propertyExists
If file exists.
(Overrides FileInfo Exists.)
Public propertyExtension
File extension.
(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
Last access time.
(Overrides FileInfo LastAccessTime.)
Public propertyLastWriteTime
Last write 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
System.IO file info object corresponding to this file
(Inherited from FileInfo.)
Back to Top
See Also