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 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected bool DeleteFileByName(
string fileName
)
Protected Function DeleteFileByName (
fileName As String
) As Boolean
protected:
bool DeleteFileByName(
String^ fileName
)
member DeleteFileByName :
fileName : string -> bool
参数
- fileName
- 类型:SystemString
完整的文件路径
返回值
类型:
Boolean是否删除成功
参见