点击或拖拽改变大小

GroupFileContainer 类

文件集容器,绑定一个文件夹的文件信息组,提供了文件夹的文件信息的获取,更新接口
File set container, which binds the file information group of a folder, provides the file information acquisition and update interface of the folder
继承层次
SystemObject
  HslCommunication.CoreGroupFileContainer

命名空间:  HslCommunication.Core
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public class GroupFileContainer

GroupFileContainer 类型公开以下成员。

构造函数
  名称说明
公共方法GroupFileContainer
实例化一个新的指定目录的文件管理容器
Instantiates a new file management container for the specified directory
Top
属性
  名称说明
公共属性DirectoryPath
当前的目录信息
Current catalog information
公共属性FileCount
获取文件的数量
Get the number of files
公共属性JsonArrayContent
包含所有文件列表信息的json文本缓存
JSON text cache containing all file list information
公共属性TotalDownloadTimes
获取当前目录中所有子文件的下载次数统计
Get the download count of all subfiles in the current directory
Top
方法
  名称说明
公共方法ClearAllFiles
删除当前目录下所有的文件信息,返回等待被删除的文件列表,是映射文件名:b35a11ec533147ca80c7f7d1713f015b7909
Delete all file information in the current directory, and return to the list of files waiting to be deleted, which is the mapping file name: b35a11ec533147ca80c7f7d1713f015b7909
公共方法DeleteFile
删除一个文件信息,传入文件实际的名称,例如 123.txt 返回被删除的文件的guid名称,例如返回 b35a11ec533147ca80c7f7d1713f015b7909 此方法存在同名文件删除的风险
Delete a file information. Pass in the actual name of the file. For example, 123.txt returns the guid name of the deleted file. For example, it returns b35a11ec533147ca80c7f7d1713f015b7909. There is a risk of deleting the file with the same name
公共方法DeleteFileByGuid
删除一个文件信息,传入文件唯一的guid的名称,例如 b35a11ec533147ca80c7f7d1713f015b7909 返回被删除的文件的guid名称
Delete a file information, pass in the unique GUID name of the file, for example b35a11ec533147ca80c7f7d1713f015b7909 return the GUID name of the deleted file
公共方法DeleteFolder
删除当前的目录信息
公共方法Equals (继承自 Object。)
公共方法FileExists
判断当前的文件名是否在文件的列表里,传入文件实际的名称,例如 123.txt,如果文件存在,返回 true, 如果不存在,返回 false
Determine whether the current file name is in the file list, and pass in the actual file name, such as 123.txt, if it exists, return true, if it does not exist, return false
受保护的方法Finalize (继承自 Object。)
公共方法GetCurrentFileMappingName
下载文件时调用,根据当前的文件名称,例如 123.txt 获取到在文件服务器里映射的文件名称,例如返回 b35a11ec533147ca80c7f7d1713f015b7909
Called when downloading a file. Get the file name mapped in the file server according to the current file name, such as 123.txt. For example, return b35a11ec533147ca80c7f7d1713f015b7909.
公共方法GetGroupFileInfo
获取当前目录所有文件的大小之和
Get the sum of the size of all files in the current directory
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
公共方法GetUploadTimeByFileName
根据文件的名称获取对应的文件信息
Get the corresponding file information according to the file name
受保护的方法MemberwiseClone (继承自 Object。)
公共方法RenameFolder
重命名当前的目录信息
公共方法ToString (重写 ObjectToString.)
公共方法UpdateFileMappingName
上传文件时掉用,通过比对现有的文件列表,如果没有,就重新创建列表信息
Used when uploading files, by comparing existing file lists, if not, re-creating list information
Top
事件
  名称说明
公共事件FileCountChanged
当文件数量发生变化的时候触发的事件
Event triggered when the number of files changes
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见