UtilUserAccountIsMemberOfGroup(String, WellKnownSidType) Method
Determines whether an user-account of the current machine context is a member of the specified group.
Namespace: DevCase.Core.Windows.UsersAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool IsMemberOfGroup(
string username,
WellKnownSidType groupSid
)
Public Shared Function IsMemberOfGroup (
username As String,
groupSid As WellKnownSidType
) As Boolean
Dim username As String
Dim groupSid As WellKnownSidType
Dim returnValue As Boolean
returnValue = UtilUserAccount.IsMemberOfGroup(username,
groupSid)
public:
static bool IsMemberOfGroup(
String^ username,
WellKnownSidType groupSid
)
static member IsMemberOfGroup :
username : string *
groupSid : WellKnownSidType -> bool
No code example is currently available or this language may not be supported.
- username String
-
The user name.
- groupSid WellKnownSidType
-
A WellKnownSidType security identifier (SID) that determines the account group.
Boolean if the user is a member of the specified group, otherwise,
.
This is a code example.
No code example is currently available or this language may not be supported.
Dim userIsGuest As Boolean =
UserAccounts.IsMemberOfGroup(username:="Administrator", groupSid:=WellKnownSidType.BuiltinGuestsSid)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.