This topic has not yet been rated - Rate this topic

SPWeb.CurrentUser Property

Gets the current user of the site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public SPUser CurrentUser { get; }

Property Value

Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the current user.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ