FileDownload Class

Definition

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
FileDownload

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)

Applies to