CurrentUser property
Collapse the table of content
Expand the table of content

Web.CurrentUser property

Gets the current user of the site.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public User CurrentUser { get; }

Property value

Type: Microsoft.SharePoint.Client.User
A User object that represents the current user.

It must not be a null reference (Nothing in Visual Basic).

© 2015 Microsoft