UtilUserAccountIsMemberOfGroup(String, String) 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,
string groupname
)
Public Shared Function IsMemberOfGroup (
username As String,
groupname As String
) As Boolean
Dim username As String
Dim groupname As String
Dim returnValue As Boolean
returnValue = UtilUserAccount.IsMemberOfGroup(username,
groupname)
public:
static bool IsMemberOfGroup(
String^ username,
String^ groupname
)
static member IsMemberOfGroup :
username : string *
groupname : string -> bool
No code example is currently available or this language may not be supported.
- username String
-
The user name.
- groupname String
-
The name of thehe 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", groupname:="Guests")
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.