Class FileInfoDB
- Namespace
- SunamoData.Data
- Assembly
- SunamoData.dll
Represents file information with a database identifier. Used for example in HostingManager.
public class FileInfoDB : FileInfoLite
- Inheritance
-
FileInfoDB
- Inherited Members
- Extension Methods
Constructors
FileInfoDB(int, string, string, long)
Initializes a new instance of the FileInfoDB class with an ID.
public FileInfoDB(int id, string directory, string fileName, long length)
Parameters
idintThe database identifier.
directorystringThe directory path.
fileNamestringThe file name.
lengthlongThe file size in bytes.
FileInfoDB(string, string, long)
Initializes a new instance of the FileInfoDB class without an ID. When I want to use only FileInfo, but have FileInfoDB type.
public FileInfoDB(string directory, string fileName, long length)
Parameters
directorystringThe directory path.
fileNamestringThe file name.
lengthlongThe file size in bytes.
Properties
Id
Gets or sets the database identifier for this file.
public int Id { get; set; }
Property Value
Methods
ToString()
Returns the full path to the file.
public override string ToString()
Returns
- string
The combined path and file name.