Clears Roles cache for the passed portal ID and for the default ID (-1) as well.

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

Syntax

C#
void ClearRoleCache(
	int portalId
)
Visual Basic
Sub ClearRoleCache ( 
	portalId As Integer
)

Parameters

portalId
Type: System..::..Int32
Id of the portal

See Also