Basic file information.
More...
|
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...
|
|
◆ FileInfo()
Constructs a new instance of FileInfo.
- Parameters
-
◆ 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
-
cancellationToken | A cancellation token. |
- Returns
- The mime type.
◆ GetSize() [1/2]
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
-
cancellationToken | A 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
-
cancellationToken | A cancellation token. |
- Returns
- The last update date and time.
◆ LoadAsync()
abstract Task LoadAsync |
( |
CancellationToken |
cancellationToken | ) |
|
|
protectedpure virtual |
Asynchronously loads properties.
- Parameters
-
cancellationToken | A cancellation token. |
◆ MimeType
◆ Name
◆ Size
Sets the file size in bytes.
◆ UpdateDate
Sets the last file update date.
The documentation for this class was generated from the following file: