Fetch a single role

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

Syntax

C#
RoleInfo GetRoleById(
	int portalId,
	int roleId
)
Visual Basic
Function GetRoleById ( 
	portalId As Integer,
	roleId As Integer
) As RoleInfo

Parameters

portalId
Type: System..::..Int32
the portalid
roleId
Type: System..::..Int32
the roleid

Return Value

>A RoleInfo object

See Also