語言

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 文件 java.nio.file.Files.getOwner(java.nio.file.Path, java.nio.file.LinkOption)。

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

適用於