JHResponse.WriteFile Method (String, String, Boolean)

DCSoft.DBUtilityGeneric

JHResponseWriteFile Method (String, String, Boolean)
[支持断点续传] 以文件流的形式输出文件(弹出文件打开、保存框),异常将直接抛出

Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static void WriteFile(
	string path,
	string fileName,
	bool endResponse
)

Parameters

path
Type: SystemString
文件的相对路径或绝对路径
fileName
Type: SystemString
文件输出时的名称(带后缀)
endResponse
Type: SystemBoolean
是否结束当前页面输出
See Also