UserPrincipalLookupService.LookupPrincipalByGroupName(String) 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.
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
.
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.