Partager via


UserPrincipalLookupService.LookupPrincipalByGroupName(String) Method

Definition

Lookup a group principal by group name.

[Android.Runtime.Register("lookupPrincipalByGroupName", "(Ljava/lang/String;)Ljava/nio/file/attribute/GroupPrincipal;", "GetLookupPrincipalByGroupName_Ljava_lang_String_Handler", ApiSince=26)]
public abstract Java.Nio.FileNio.Attributes.IGroupPrincipal? LookupPrincipalByGroupName (string? group);
[<Android.Runtime.Register("lookupPrincipalByGroupName", "(Ljava/lang/String;)Ljava/nio/file/attribute/GroupPrincipal;", "GetLookupPrincipalByGroupName_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member LookupPrincipalByGroupName : string -> Java.Nio.FileNio.Attributes.IGroupPrincipal

Parameters

group
String

the string representation of the group to lookup

Returns

a group principal

Attributes

Remarks

Lookup a group principal by group name.

Where an implementation does not support any notion of group then this method always throws UserPrincipalNotFoundException. Where the namespace for user accounts and groups is the same, then this method is identical to invoking #lookupPrincipalByName lookupPrincipalByName.

Java documentation for java.nio.file.attribute.UserPrincipalLookupService.lookupPrincipalByGroupName(java.lang.String).

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.

Applies to