FileDownloadContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extended media context for the FileDownload component providing click invocation and filename.
public sealed class FileDownloadContext : Microsoft.AspNetCore.Components.Web.Media.MediaContext
type FileDownloadContext = class
inherit MediaContext
Public NotInheritable Class FileDownloadContext
Inherits MediaContext
- Inheritance
Constructors
| Name | Description |
|---|---|
| FileDownloadContext() | |
Properties
| Name | Description |
|---|---|
| Element |
Element reference for use with |
| FileName |
Gets the file name suggested to the browser when initiating the download. |
| HasError |
Indicates whether the last load attempt failed. (Inherited from MediaContext) |
| IsLoading |
Indicates whether the media is currently loading. (Inherited from MediaContext) |
| ObjectUrl |
The object URL for the media (image/video) or |
Methods
| Name | Description |
|---|---|
| InvokeAsync() |
Initiates the download by invoking the underlying click handler of the parent. |