IDosFileAttributes 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
與檔案系統中支援舊版 「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 |
傳回已包裝實例的 值 |
JniManagedPeerState |
Managed 對等的狀態。 (繼承來源 IJavaPeerable) |
JniPeerMembers |
成員存取和調用支援。 (繼承來源 IJavaPeerable) |
PeerReference |
傳 JniObjectReference 回已包裝 JAVA 物件實例的 。 (繼承來源 IJavaPeerable) |
方法
CreationTime() |
傳回建立時間。 (繼承來源 IBasicFileAttributes) |
Disposed() |
處置實例時呼叫。 (繼承來源 IJavaPeerable) |
DisposeUnlessReferenced() |
如果這個實例沒有未完成的參考,則呼叫 |
FileKey() |
傳回可唯一識別指定檔案的物件,如果無法使用檔案索引鍵,則 |
Finalized() |
實例完成時呼叫。 (繼承來源 IJavaPeerable) |
LastAccessTime() |
傳回上次存取的時間。 (繼承來源 IBasicFileAttributes) |
LastModifiedTime() |
傳回上次修改的時間。 (繼承來源 IBasicFileAttributes) |
SetJniIdentityHashCode(Int32) |
設定 所 |
SetJniManagedPeerState(JniManagedPeerStates) |
與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。 (繼承來源 IJavaPeerable) |
SetPeerReference(JniObjectReference) |
設定 所 |
Size() |
傳回檔案的大小 (,以位元組為單位) 。 (繼承來源 IBasicFileAttributes) |
UnregisterFromRuntime() |
取消註冊這個實例,讓執行時間不會從未來的 Java.Interop.JniRuntime+JniValueManager.PeekValue 調用傳回它。 (繼承來源 IJavaPeerable) |
擴充方法
JavaCast<TResult>(IJavaObject) |
執行 Android 執行時間檢查的類型轉換。 |
JavaCast<TResult>(IJavaObject) |
與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。 |
GetJniTypeName(IJavaPeerable) |
與檔案系統中支援舊版 「DOS」 屬性的檔案相關聯的檔案屬性。 |