Table of Contents

Class DownloadServiceExtensions

Namespace
BootstrapBlazor.Components
Assembly
BootstrapBlazor.dll

DownloadService 扩展类

public static class DownloadServiceExtensions
Inheritance
DownloadServiceExtensions
Inherited Members

Methods

DownloadFolderAsync(DownloadService, string, string)

下载文件夹方法

public static Task DownloadFolderAsync(this DownloadService download, string downloadFileName, string folder)

Parameters

download DownloadService
downloadFileName string

文件名

folder string

文件夹路径

Returns

Task

DownloadFromByteArrayAsync(DownloadService, string, byte[])

下载文件方法

public static Task DownloadFromByteArrayAsync(this DownloadService download, string downloadFileName, byte[] data)

Parameters

download DownloadService
downloadFileName string

文件名

data byte[]

Byte[] 数组

Returns

Task

DownloadFromFileAsync(DownloadService, string, string)

下载文件扩展方法

public static Task DownloadFromFileAsync(this DownloadService download, string fileName, string physicalFilePath)

Parameters

download DownloadService
fileName string
physicalFilePath string

Returns

Task

DownloadFromStreamAsync(DownloadService, string, Stream)

下载文件方法

public static Task DownloadFromStreamAsync(this DownloadService download, string downloadFileName, Stream stream)

Parameters

download DownloadService
downloadFileName string

文件名

stream Stream

文件流

Returns

Task

DownloadFromUrlAsync(DownloadService, string, string)

获取文件连接方法

public static Task DownloadFromUrlAsync(this DownloadService download, string downloadFileName, string url)

Parameters

download DownloadService
downloadFileName string

文件名

url string

文件地址

Returns

Task