点击或拖拽改变大小

NetworkBaseDeleteFileByName 方法

删除一个指定的文件,如果文件不存在,直接返回 True,如果文件存在则直接删除,删除成功返回 True,如果发生了异常,返回False
Delete a specified file, if the file does not exist, return True directly, if the file exists, delete it directly, if the deletion is successful, return True, if an exception occurs, return False

命名空间:  HslCommunication.Core.Net
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
protected bool DeleteFileByName(
	string fileName
)

参数

fileName
类型:SystemString
完整的文件路径

返回值

类型:Boolean
是否删除成功
参见