GetCachedUser retrieves the User from the Cache, or fetches a fresh copy if not in cache or if Cache settings not set to HeavyCaching

Namespace: DotNetNuke.Entities.Users
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static UserInfo GetCachedUser(
	int portalId,
	string username
)
Visual Basic
Public Shared Function GetCachedUser ( 
	portalId As Integer,
	username As String
) As UserInfo

Parameters

portalId
Type: System..::..Int32
The Id of the Portal
username
Type: System..::..String
The username of the user being retrieved.

Return Value

The User as a UserInfo object

Remarks