Click or drag to resize

FileData Class

Class encapsulates basic data about a file.
Inheritance Hierarchy
SystemObject
  Opait.ApiFileData

Namespace:  Opait.Api
Assembly:  Opait.Core (in Opait.Core.dll) Version: 1.3.3.0
Syntax
C#
public class FileData

The FileData type exposes the following members.

Constructors
  NameDescription
Public methodFileData
Initializes a new instance of the FileData class with default parameters.
Public methodFileData(FileInfo)
Initializes a new instance of the FileData class from the specified FileInfo.
Public methodFileData(String)
Initializes a new instance of the FileData class from the specified path.
Top
Properties
  NameDescription
Public propertyExists
Gets a flag indicating whether the file exists.
Public propertyExtension
Gets or sets the extension of the file.
Public propertyFileName
Gets the name and extension of the file.
Public propertyFileNameWithoutExtension
Gets the file name without extension.
Public propertyFolder
Gets the directory where the file resides.
Public propertyFormat
Gets or sets the format of the file.
Public propertyFullName
Gets or sets the path that points to the file.
Public propertyLastModified
Gets or sets the date when the file was last modified.
Public propertyLength
Gets or sets the length of the file in bytes.
Public propertyPageCount
Gets or sets the number of pages in the file.
Top
Methods
  NameDescription
Public methodCopyTo
Copies the current file to the specified destination file.
Public methodCopyToFolder
Copies the current file to the specified destination folder
Public methodDelete
Deletes the current file.
Public methodGetFormat
Get the current file format using file extension or content signature.
Public methodMoveTo
Moves the current file to the specified destination file.
Public methodMoveToFolder
Moves the current file to the specified destination folder
Public methodTryDelete
Attempts to delete the current file.
Top
See Also