Gets a list of UserRoles for the user

Namespace: DotNetNuke.Security.Roles
Assembly: 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

Return Value

A list of UserRoleInfo objects

See Also