Get the roles based on a predicate

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

Syntax

C#
IList<RoleInfo> GetRoles(
	int portalId,
	Func<RoleInfo, bool> predicate
)
Visual Basic
Function GetRoles ( 
	portalId As Integer,
	predicate As Func(Of RoleInfo, Boolean)
) As IList(Of RoleInfo)

Parameters

portalId
Type: System..::..Int32
Id of the portal
predicate
Type: System..::..Func<(Of <(<'RoleInfo, Boolean>)>)>
The predicate (criteria) required

Return Value

A List of RoleInfo objects

See Also