Table of Contents

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

id int

The database identifier.

directory string

The directory path.

fileName string

The file name.

length long

The 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

directory string

The directory path.

fileName string

The file name.

length long

The file size in bytes.

Properties

Id

Gets or sets the database identifier for this file.

public int Id { get; set; }

Property Value

int

Methods

ToString()

Returns the full path to the file.

public override string ToString()

Returns

string

The combined path and file name.