check whether a user is a member of specific role.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As IManageService
Dim username As String
Dim role As String
Dim extraData As String
Dim value As Boolean
value = instance.IsUserInRole(username, role, extraData)
|
Parameters
- username
-
A String representing the user name.
- role
-
A String representing the name of the role.
- extraData
-
User custom data.
Return Value
true if the user is a member of the specified role.
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family
See Also