語言

ISecureDirectoryStream.GetFileAttributeView 方法

定義

多載

名稱 Description
GetFileAttributeView(Class)

回傳一個新的檔案屬性檢視,以存取該目錄的檔案屬性。

GetFileAttributeView(Object, Class, LinkOption[])

回傳一個新的檔案屬性檢視,以存取該目錄的檔案屬性。

GetFileAttributeView(Class)

回傳一個新的檔案屬性檢視,以存取該目錄的檔案屬性。

[Android.Runtime.Register("getFileAttributeView", "(Ljava/lang/Class;)Ljava/nio/file/attribute/FileAttributeView;", "GetGetFileAttributeView_Ljava_lang_Class_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileAttributeView" })]
public Java.Lang.Object? GetFileAttributeView(Java.Lang.Class? type);
[<Android.Runtime.Register("getFileAttributeView", "(Ljava/lang/Class;)Ljava/nio/file/attribute/FileAttributeView;", "GetGetFileAttributeView_Ljava_lang_Class_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileAttributeView" })>]
abstract member GetFileAttributeView : Java.Lang.Class -> Java.Lang.Object

參數

type
Class

Class對應於檔案屬性檢視的物件

傳回

綁定到該目錄串流的新檔案屬性視圖,或 null 若該屬性視圖類型不可用,則是指定類型的新檔案屬性檢視

屬性

備註

回傳一個新的檔案屬性檢視,以存取該目錄的檔案屬性。

產生的檔案屬性檢視可用於讀取或更新此(開啟)目錄的屬性。 參數 type 指定屬性視圖的類型,若支援,方法會回傳該類型的實例。 呼叫此方法取得 a BasicFileAttributeView ,總是回傳綁定到此開啟目錄的該類別實例。

產生的檔案屬性檢視狀態與此目錄串流密切相關。 一旦目錄串流為 #close closed,所有讀取或更新屬性的方法都會拋出 ClosedDirectoryStreamException ClosedDirectoryStreamException。

Java 文件 java.nio.file.SecureDirectoryStream.getFileAttributeView(java.lang.Class<V>)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GetFileAttributeView(Object, Class, LinkOption[])

回傳一個新的檔案屬性檢視,以存取該目錄的檔案屬性。

[Android.Runtime.Register("getFileAttributeView", "(Ljava/lang/Object;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileAttributeView;", "GetGetFileAttributeView_Ljava_lang_Object_Ljava_lang_Class_arrayLjava_nio_file_LinkOption_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileAttributeView" })]
public Java.Lang.Object? GetFileAttributeView(Java.Lang.Object? path, Java.Lang.Class? type, params Java.Nio.FileNio.LinkOption[]? options);
[<Android.Runtime.Register("getFileAttributeView", "(Ljava/lang/Object;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileAttributeView;", "GetGetFileAttributeView_Ljava_lang_Object_Ljava_lang_Class_arrayLjava_nio_file_LinkOption_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V extends java.nio.file.attribute.FileAttributeView" })>]
abstract member GetFileAttributeView : Java.Lang.Object * Java.Lang.Class * Java.Nio.FileNio.LinkOption[] -> Java.Lang.Object

參數

path
Object

檔案的路徑

type
Class

Class對應於檔案屬性檢視的物件

options
LinkOption[]

指示符號連結如何處理的選項

傳回

綁定到該目錄串流的新檔案屬性視圖,或 null 若該屬性視圖類型不可用,則是指定類型的新檔案屬性檢視

屬性

備註

Java 文件 java.nio.file.SecureDirectoryStream.getFileAttributeView(java.lang.Class)。

Java 參考 java.nio.file.SecureDirectoryStream.getFileAttributeView。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於