GetUserByUserName retrieves a User from the DataStore

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

Syntax

C#
public static UserInfo GetUserByName(
	int portalId,
	string username
)
Visual Basic
Public Shared Function GetUserByName ( 
	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 from the Data Store.

Return Value

The User as a UserInfo object

Remarks