| UserAccountControlIsCurrentUserInGroup Method |
Determines whether the current user is in the specified group.
Namespace: TomsToolbox.DesktopAssembly: TomsToolbox.Desktop (in TomsToolbox.Desktop.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax public static bool IsCurrentUserInGroup(
string groupName
)
Public Shared Function IsCurrentUserInGroup (
groupName As String
) As Boolean
Parameters
- groupName String
- Name of the group.
Return Value
Booleantrue if the user belongs to the specified group; otherwise
falseSee Also