Obtains a list of roles from the cache (or for the database if the cache has expired)

Namespace: DotNetNuke.Security.Roles
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
IList<RoleInfo> GetRoles(
	int portalId
)
Visual Basic
Function GetRoles ( 
	portalId As Integer
) As IList(Of RoleInfo)

Parameters

portalId
Type: System..::..Int32
The id of the portal

Return Value

The list of roles

See Also