Share via


IDosFileAttributes 介面

定義

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

[Android.Runtime.Register("java/nio/file/attribute/DosFileAttributes", "", "Java.Nio.FileNio.Attributes.IDosFileAttributesInvoker", ApiSince=26)]
public interface IDosFileAttributes : IDisposable, Java.Interop.IJavaPeerable, Java.Nio.FileNio.Attributes.IBasicFileAttributes
[<Android.Runtime.Register("java/nio/file/attribute/DosFileAttributes", "", "Java.Nio.FileNio.Attributes.IDosFileAttributesInvoker", ApiSince=26)>]
type IDosFileAttributes = interface
    interface IBasicFileAttributes
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
屬性
實作

備註

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

<b > 使用範例: < /b>

Path file = ...
               DosFileAttributes attrs = Files.readAttributes(file, DosFileAttributes.class);

已在 1.7 中新增。

java.nio.file.attribute.DosFileAttributes JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

屬性

Handle

取得基礎 Android 物件的 JNI 值。

(繼承來源 IJavaObject)
IsArchive

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

IsDirectory

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

(繼承來源 IBasicFileAttributes)
IsHidden

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

IsOther

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

(繼承來源 IBasicFileAttributes)
IsReadOnly

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

IsRegularFile

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

(繼承來源 IBasicFileAttributes)
IsSymbolicLink

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

(繼承來源 IBasicFileAttributes)
IsSystem

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

JniIdentityHashCode

傳回已包裝實例的 值 java.lang.System.identityHashCode()

(繼承來源 IJavaPeerable)
JniManagedPeerState

Managed 對等的狀態。

(繼承來源 IJavaPeerable)
JniPeerMembers

成員存取和調用支援。

(繼承來源 IJavaPeerable)
PeerReference

JniObjectReference 回已包裝 JAVA 物件實例的 。

(繼承來源 IJavaPeerable)

方法

CreationTime()

傳回建立時間。

(繼承來源 IBasicFileAttributes)
Disposed()

處置實例時呼叫。

(繼承來源 IJavaPeerable)
DisposeUnlessReferenced()

如果這個實例沒有未完成的參考,則呼叫 Dispose() ,否則不會執行任何動作。

(繼承來源 IJavaPeerable)
FileKey()

傳回可唯一識別指定檔案的物件,如果無法使用檔案索引鍵,則 null 傳回物件。

(繼承來源 IBasicFileAttributes)
Finalized()

實例完成時呼叫。

(繼承來源 IJavaPeerable)
LastAccessTime()

傳回上次存取的時間。

(繼承來源 IBasicFileAttributes)
LastModifiedTime()

傳回上次修改的時間。

(繼承來源 IBasicFileAttributes)
SetJniIdentityHashCode(Int32)

設定 所 JniIdentityHashCode 傳回的值。

(繼承來源 IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates)

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

(繼承來源 IJavaPeerable)
SetPeerReference(JniObjectReference)

設定 所 PeerReference 傳回的值。

(繼承來源 IJavaPeerable)
Size()

傳回檔案的大小 (,以位元組為單位) 。

(繼承來源 IBasicFileAttributes)
UnregisterFromRuntime()

取消註冊這個實例,讓執行時間不會從未來的 Java.Interop.JniRuntime+JniValueManager.PeekValue 調用傳回它。

(繼承來源 IJavaPeerable)

擴充方法

JavaCast<TResult>(IJavaObject)

執行 Android 執行時間檢查的類型轉換。

JavaCast<TResult>(IJavaObject)

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

GetJniTypeName(IJavaPeerable)

與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。

適用於