共用方式為


FileSystemAttributes class

這是協助程式類別,用來建構字串,代表檔案或目錄的NTFS屬性。

請參閱 https://docs.microsoft.com/en-us/rest/api/storageservices/create-file#file-system-attributes

屬性

archive

指定目錄或檔案是封存。 應用程式通常會使用此屬性來標記檔案以進行備份或移除。

directory

指定句柄識別目錄。

hidden

指定隱藏的目錄或檔案。

none

指定沒有設定其他屬性的目錄或檔案。 此屬性只有在單獨使用時才有效。

noScrubData

指定要由背景數據完整性掃描器讀取的用戶數據流。 此文件系統屬性主要是為了提供與 Windows 的相容性。 適用於目錄或檔案。

notContentIndexed

指定目錄或檔案不是由內容索引服務編製索引。

offline

指定目錄或檔案的數據無法立即使用。 此文件系統屬性主要是為了提供與 Windows 的相容性 - Azure 檔案服務不支援離線記憶體選項。

readonly

指定唯讀的目錄或檔案。

system

指定作系統使用 部分或獨佔使用的目錄或檔案。

temporary

指定檔案是否為暫存。

方法

parse(string)

從指定的屬性字串建立 FileSystemAttributes。 如果遇到未對應至有效屬性的字串,這個方法將會擲回 Error。

toString()

將指定的屬性轉換為字串。

屬性詳細資料

archive

指定目錄或檔案是封存。 應用程式通常會使用此屬性來標記檔案以進行備份或移除。

archive: boolean

屬性值

boolean

directory

指定句柄識別目錄。

directory: boolean

屬性值

boolean

hidden

指定隱藏的目錄或檔案。

hidden: boolean

屬性值

boolean

none

指定沒有設定其他屬性的目錄或檔案。 此屬性只有在單獨使用時才有效。

none: boolean

屬性值

boolean

noScrubData

指定要由背景數據完整性掃描器讀取的用戶數據流。 此文件系統屬性主要是為了提供與 Windows 的相容性。 適用於目錄或檔案。

noScrubData: boolean

屬性值

boolean

notContentIndexed

指定目錄或檔案不是由內容索引服務編製索引。

notContentIndexed: boolean

屬性值

boolean

offline

指定目錄或檔案的數據無法立即使用。 此文件系統屬性主要是為了提供與 Windows 的相容性 - Azure 檔案服務不支援離線記憶體選項。

offline: boolean

屬性值

boolean

readonly

指定唯讀的目錄或檔案。

readonly: boolean

屬性值

boolean

system

指定作系統使用 部分或獨佔使用的目錄或檔案。

system: boolean

屬性值

boolean

temporary

指定檔案是否為暫存。

temporary: boolean

屬性值

boolean

方法詳細資料

parse(string)

從指定的屬性字串建立 FileSystemAttributes。 如果遇到未對應至有效屬性的字串,這個方法將會擲回 Error。

static function parse(fileAttributes: string): FileSystemAttributes

參數

fileAttributes

string

標頭 x-ms-file-attributes 的值。

傳回

toString()

將指定的屬性轉換為字串。

function toString(): string

傳回

string

表示 FileSystemAttributes 的字串