CKFinder 3 – ASP.NET Connector Documentation
FileInfo Class Referenceabstract

Basic file information. More...

Public Member Functions

Task< DateTime > GetUpdateDate ()
 Asynchronously gets the last update date and time. More...
 
async Task< DateTime > GetUpdateDate (CancellationToken cancellationToken)
 Asynchronously gets the last update date and time. More...
 
Task< long > GetSize ()
 Asynchronously gets the file size in bytes. More...
 
async Task< long > GetSize (CancellationToken cancellationToken)
 Asynchronously gets the file size in bytes. More...
 
Task< string > GetMimeType ()
 Asynchronously gets the mime type. More...
 
async Task< string > GetMimeType (CancellationToken cancellationToken)
 Asynchronously gets the mime type. More...
 

Protected Member Functions

 FileInfo (string name)
 Constructs a new instance of FileInfo. More...
 
abstract Task LoadAsync (CancellationToken cancellationToken)
 Asynchronously loads properties. More...
 

Properties

DateTime? UpdateDate [set]
 Sets the last file update date. More...
 
long? Size [set]
 Sets the file size in bytes. More...
 
string MimeType [set]
 Sets the file mime type. More...
 
string Name [get]
 Gets the file name. More...
 

Detailed Description

Basic file information.

Constructor & Destructor Documentation

◆ FileInfo()

FileInfo ( string  name)
inlineprotected

Constructs a new instance of FileInfo.

Parameters
nameA name of the file.

Member Function Documentation

◆ GetMimeType() [1/2]

Task<string> GetMimeType ( )
inline

Asynchronously gets the mime type.

Returns
The mime type.

◆ GetMimeType() [2/2]

async Task<string> GetMimeType ( CancellationToken  cancellationToken)
inline

Asynchronously gets the mime type.

Parameters
cancellationTokenA cancellation token.
Returns
The mime type.

◆ GetSize() [1/2]

Task<long> GetSize ( )
inline

Asynchronously gets the file size in bytes.

Returns
The file size in bytes.

◆ GetSize() [2/2]

async Task<long> GetSize ( CancellationToken  cancellationToken)
inline

Asynchronously gets the file size in bytes.

Parameters
cancellationTokenA cancellation token.
Returns
The file size in bytes.

◆ GetUpdateDate() [1/2]

Task<DateTime> GetUpdateDate ( )
inline

Asynchronously gets the last update date and time.

Returns
The last update date and time.

◆ GetUpdateDate() [2/2]

async Task<DateTime> GetUpdateDate ( CancellationToken  cancellationToken)
inline

Asynchronously gets the last update date and time.

Parameters
cancellationTokenA cancellation token.
Returns
The last update date and time.

◆ LoadAsync()

abstract Task LoadAsync ( CancellationToken  cancellationToken)
protectedpure virtual

Asynchronously loads properties.

Parameters
cancellationTokenA cancellation token.

Property Documentation

◆ MimeType

string MimeType
setprotected

Sets the file mime type.

◆ Name

string Name
get

Gets the file name.

◆ Size

long? Size
setprotected

Sets the file size in bytes.

◆ UpdateDate

DateTime? UpdateDate
setprotected

Sets the last file update date.


The documentation for this class was generated from the following file: