Gets a list of UserRoles for the user
Namespace: DotNetNuke.Security.RolesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
IList<UserRoleInfo> GetUserRoles( int portalId, string userName, string roleName ) |
Visual Basic |
---|
Function GetUserRoles ( portalId As Integer, userName As String, roleName As String ) As IList(Of UserRoleInfo) |
Parameters
- portalId
- Type: System..::..Int32
Id of the portal
- userName
- Type: System..::..String
The user to fetch roles for
- roleName
- Type: System..::..String
The role to fetch users for