FileSystem.UserPrincipalLookupService Property
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 UserPrincipalLookupService for this file system (optional operation).
public abstract Java.Nio.FileNio.Attributes.UserPrincipalLookupService? UserPrincipalLookupService { [Android.Runtime.Register("getUserPrincipalLookupService", "()Ljava/nio/file/attribute/UserPrincipalLookupService;", "GetGetUserPrincipalLookupServiceHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getUserPrincipalLookupService", "()Ljava/nio/file/attribute/UserPrincipalLookupService;", "GetGetUserPrincipalLookupServiceHandler", ApiSince=26)>]
member this.UserPrincipalLookupService : Java.Nio.FileNio.Attributes.UserPrincipalLookupService
Property Value
The UserPrincipalLookupService for this file system
- Attributes
Remarks
Returns the UserPrincipalLookupService for this file system (optional operation). The resulting lookup service may be used to lookup user or group names.
UserPrincipalLookupService lookupService = FileSystems.getDefault().getUserPrincipalLookupService();
Files.setOwner(path, lookupService.lookupPrincipalByName("joe"));
Java reference for java.nio.file.FileSystem.getUserPrincipalLookupService.
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.