HttpClient.SaveAsFile Method (String, FileExistsAction)

DCSoft.DBUtilityGeneric

HttpClientSaveAsFile Method (String, FileExistsAction)
发出一次新的请求,把回应的主体内容保存到文件 调用此方法会触发StatusUpdate事件

Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public bool SaveAsFile(
	string fileName,
	FileExistsAction existsAction
)

Parameters

fileName
Type: SystemString
要保存的文件路径
existsAction
Type: DCSoft.Utility.WebFileExistsAction
指定的文件存在时的选项

Return Value

Type: Boolean
是否向目标文件写入了数据
See Also