FileDownload 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.
A component that provides an anchor element to download the provided media source.
public sealed class FileDownload : Microsoft.AspNetCore.Components.Web.Media.MediaComponentBase
type FileDownload = class
inherit MediaComponentBase
Public NotInheritable Class FileDownload
Inherits MediaComponentBase
- Inheritance
Constructors
| Name | Description |
|---|---|
| FileDownload() | |
Properties
| Name | Description |
|---|---|
| AdditionalAttributes |
Unmatched attributes applied to the rendered element. (Inherited from MediaComponentBase) |
| ChildContent |
Allows customizing the rendering of the file download component. |
| FileName |
File name to suggest to the browser for the download. Must be provided. |
| Source |
Gets or sets the media source. (Inherited from MediaComponentBase) |
| Text |
Provides custom link text. Defaults to "Download". |
Methods
| Name | Description |
|---|---|
| DisposeAsync() | (Inherited from MediaComponentBase) |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IComponent.Attach(RenderHandle) | (Inherited from MediaComponentBase) |
| IComponent.SetParametersAsync(ParameterView) | (Inherited from MediaComponentBase) |
| IHandleAfterRender.OnAfterRenderAsync() | (Inherited from MediaComponentBase) |