点击或拖拽改变大小

MqttSyncClientIsFileExistsAsync 方法

[文件引擎] 请求服务器指定分类是否存在指定的文件名,需要指定分类信息,文件名
[File Engine] Request the server to specify whether the specified file name exists in the specified category, need to specify the category information, file name

命名空间:  HslCommunication.MQTT
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public Task<OperateResult<bool>> IsFileExistsAsync(
	string groups,
	string fileName
)

参数

groups
类型:SystemString
文件的类别,例如 Files/Personal/Admin 按照斜杠来区分
fileName
类型:SystemString
文件名信息,例如 123.txt

返回值

类型:TaskOperateResultBoolean
Content为True表示存在,否则为不存在
参见