Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the current user of the site.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property CurrentUser As SPUser
Get
'Usage
Dim instance As SPWeb
Dim value As SPUser
value = instance.CurrentUser
public SPUser CurrentUser { get; }
Property value
Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the current user.