Class
FileManagerDownloadEventArgs

Event arguments for OnDownload event when users download files.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class FileManagerDownloadEventArgs : FileManagerCancelableEventArgs

Inheritance: objectEventArgsFileManagerEventArgsBaseFileManagerCancelableEventArgsFileManagerDownloadEventArgs

Inherited Members EventArgs.Empty

Constructors

FileManagerDownloadEventArgs()

Declaration

cs-api-definition
public FileManagerDownloadEventArgs()

FileManagerDownloadEventArgs(object)

Declaration

cs-api-definition
public FileManagerDownloadEventArgs(object item)

Parameters

item

object

Properties

FileName

Custom filename for download. Uses original name if not specified.

Declaration

cs-api-definition
public string FileName { get; set; }

Property Value

string

Item

The file item being downloaded.

Declaration

cs-api-definition
public object Item { get; set; }

Property Value

object

MimeType

MIME type for proper browser handling. Example: "application/pdf".

Declaration

cs-api-definition
public string MimeType { get; set; }

Property Value

string

Stream

File content stream for download. Populate with actual file data.

Declaration

cs-api-definition
public MemoryStream Stream { get; set; }

Property Value

MemoryStream