共用方式為


Files.GetOwner(IPath, LinkOption[]) 方法

定義

傳回檔案的擁有者。

[Android.Runtime.Register("getOwner", "(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/UserPrincipal;", "", ApiSince=26)]
public static Java.Nio.FileNio.Attributes.IUserPrincipal? GetOwner (Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.LinkOption[]? options);
[<Android.Runtime.Register("getOwner", "(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/UserPrincipal;", "", ApiSince=26)>]
static member GetOwner : Java.Nio.FileNio.IPath * Java.Nio.FileNio.LinkOption[] -> Java.Nio.FileNio.Attributes.IUserPrincipal

參數

path
IPath

檔案的路徑

options
LinkOption[]

選項,指出符號連結的處理方式

傳回

代表檔案擁有者的用戶主體

屬性

備註

java.nio.file.Files.getOwner(java.nio.file.Path, java.nio.file.LinkOption)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於