Files.GetOwner(IPath, LinkOption[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the owner of a file.
[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
Parameters
- path
- IPath
The path to the file
- options
- LinkOption[]
options indicating how symbolic links are handled
Returns
A user principal representing the owner of the file
- Attributes
Remarks
Java documentation for java.nio.file.Files.getOwner(java.nio.file.Path, java.nio.file.LinkOption)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.