你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NtfsAttributes 枚举

  • java.lang.Object
    • java.lang.Enum<NtfsAttributes>
      • com.microsoft.azure.storage.file.NtfsAttributes

public enum NtfsAttributes

指定 NTFS 属性的选项。

字段

ARCHIVE

该文件是备份或删除的候选项。

DIRECTORY

此文件是一个目录。

HIDDEN

文件是隐藏的,因此不包括在普通目录列表中。

NORMAL

该文件是没有特殊属性的标准文件。

NOT_CONTENT_INDEXED

将不会通过操作系统的内容索引服务来索引此文件。

OFFLINE

此文件处于脱机状态, 文件数据不能立即供使用。

READ_ONLY

文件为只读文件。

SYSTEM

此文件是系统文件。 即,该文件是操作系统的一部分或者由操作系统以独占方式使用。

TEMPORARY

文件是临时文件。 临时文件包含当执行应用程序时需要的,但当应用程序完成后不需要的数据。 文件系统尝试将所有数据保存在内存中,而不是将数据刷新回大容量存储,以便可以快速访问。 当临时文件不再需要时,应用程序应立即删除它。

继承成员

com.microsoft.azure.storage.file._ntfs_attributes_1a454fa3c83503d635ee1bbfef4e0c48b4

方法

toAttributes(String ntfsAttributes)

public static EnumSet toAttributes(String ntfsAttributes)

创建 NtfsAttributes 的枚举集

</code> from a valid String .</p>

参数

ntfsAttributes
String
表示 String ntfs 属性的 。 字符串必须包含以下一个或多个由 |分隔的值。 请注意,它们区分大小写。
  • ReadOnly

  • Hidden
  • System
  • None
  • Directory
  • Archive
  • Temporary
  • Offline
  • NotContentIndexed
  • NoScrubData

返回

EnumSet<NtfsAttributes>

toString(EnumSet<NtfsAttributes> ntfsAttributes)

public static String toString(EnumSet ntfsAttributes)

转换 NtfsAttributes 的枚举集

</code> to a string.</p>

参数

ntfsAttributes
EnumSet<NtfsAttributes>

返回

String
一个 , String 表示格式正确的 NTFS 属性,格式由 | 分隔,如 中所述 toAttributes(String ntfsAttributes)

适用于