FileResourceLocator(FileResourceInfo, String, Boolean) 构造函数
根据资源信息和保存目录,初始化一个可写入的定位器。
命名空间: TouchSocket.Dmtp.FileTransfer程序集: TouchSocket.Dmtp (在 TouchSocket.Dmtp.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
public FileResourceLocator(
FileResourceInfo fileResourceInfo,
string locatorPath,
bool overwrite = true
)
Public Sub New (
fileResourceInfo As FileResourceInfo,
locatorPath As String,
Optional overwrite As Boolean = true
)
new :
fileResourceInfo : FileResourceInfo *
locatorPath : string *
?overwrite : bool
(* Defaults:
let _overwrite = defaultArg overwrite true
*)
-> FileResourceLocator
参数
- fileResourceInfo FileResourceInfo
- 资源信息对象,包含文件资源的详细信息。
- locatorPath String
- 定位器路径,即文件资源的保存目录。
- overwrite Boolean (Optional)
- 是否覆盖现有文件,默认为 true。
ArgumentException | 当 locatorPath 为 null 或空字符串时抛出。 |