Sitecore 5.1.1 API

Context.User Property

Gets the current user.

[Visual Basic]
Public Shared ReadOnly Property User As UserItem
[C#]
public static SecurityModel.UserItem User {get;}

Remarks

The current user is either the logged in user, a user that has been switched to or the Anonymous user, if no other user has been specified.

See Also

Context Class | Sitecore Namespace