共用方式為


NSFileManager.GetFileSystemAttributes 方法

定義

多載

GetFileSystemAttributes(String)

傳回指定磁片區的檔案系統屬性。

GetFileSystemAttributes(String, NSError)

傳回指定磁片區的檔案系統屬性。

GetFileSystemAttributes(String)

傳回指定磁片區的檔案系統屬性。

public Foundation.NSFileSystemAttributes GetFileSystemAttributes (string path);
member this.GetFileSystemAttributes : string -> Foundation.NSFileSystemAttributes

參數

path
String

要探查資訊之磁片區中任何檔案的路徑。

傳回

NSFileSystemAttributes 物件,其中包含檔案系統屬性或錯誤時為 Null。

備註

此函式會傳回與指定路徑相關聯的檔案系統資訊。 路徑是磁片區中包含的任何路徑名稱。

適用於

GetFileSystemAttributes(String, NSError)

傳回指定磁片區的檔案系統屬性。

public Foundation.NSFileSystemAttributes GetFileSystemAttributes (string path, out Foundation.NSError error);
member this.GetFileSystemAttributes : string *  -> Foundation.NSFileSystemAttributes

參數

path
String

要探查資訊之磁片區中任何檔案的路徑。

error
NSError

Error 物件,傳回任何錯誤狀況。

傳回

NSFileSystemAttributes 物件,其中包含檔案系統屬性,或發生錯誤時為 null。

備註

此函式會傳回與指定路徑相關聯的檔案系統資訊。 路徑是磁片區中包含的任何路徑名稱。

適用於