GetUserByUserName retrieves a User from the DataStore

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

Syntax

C#
public static UserInfo GetUserByName(
	string username
)
Visual Basic
Public Shared Function GetUserByName ( 
	username As String
) As UserInfo

Parameters

username
Type: System..::..String
The username of the user being retrieved from the Data Store.

Return Value

The User as a UserInfo object

Remarks