Sprache

FileSystem.UserPrincipalLookupService Eigenschaft

Definition

Gibt den UserPrincipalLookupService für dieses Dateisystem (optionaler Vorgang) zurück.

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

Eigenschaftswert

UserPrincipalLookupService für dieses Dateisystem

Attribute

Hinweise

Gibt den UserPrincipalLookupService für dieses Dateisystem (optionaler Vorgang) zurück. Der resultierende Nachschlagedienst kann zum Nachschlagen von Benutzer- oder Gruppennamen verwendet werden.

UserPrincipalLookupService lookupService = FileSystems.getDefault().getUserPrincipalLookupService();
Files.setOwner(path, lookupService.lookupPrincipalByName("joe"));

Java Referenz für java.nio.file.FileSystem.getUserPrincipalLookupService.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: