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
DownloadServicedownloadFileName
string文件名
folder
string文件夹路径
Returns
DownloadFromByteArrayAsync(DownloadService, string, byte[])
下载文件方法
public static Task DownloadFromByteArrayAsync(this DownloadService download, string downloadFileName, byte[] data)
Parameters
download
DownloadServicedownloadFileName
string文件名
data
byte[]Byte[] 数组
Returns
DownloadFromFileAsync(DownloadService, string, string)
下载文件扩展方法
public static Task DownloadFromFileAsync(this DownloadService download, string fileName, string physicalFilePath)
Parameters
download
DownloadServicefileName
stringphysicalFilePath
string
Returns
DownloadFromStreamAsync(DownloadService, string, Stream)
下载文件方法
public static Task DownloadFromStreamAsync(this DownloadService download, string downloadFileName, Stream stream)
Parameters
download
DownloadServicedownloadFileName
string文件名
stream
Stream文件流
Returns
DownloadFromUrlAsync(DownloadService, string, string)
获取文件连接方法
public static Task DownloadFromUrlAsync(this DownloadService download, string downloadFileName, string url)
Parameters
download
DownloadServicedownloadFileName
string文件名
url
string文件地址