This documentation is archived and is not being maintained.

SPWeb.CurrentUser Property

Windows SharePoint Services 3

Gets the current user of the site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

'Declaration
Public ReadOnly Property CurrentUser As SPUser
	Get
'Usage
Dim instance As SPWeb
Dim value As SPUser

value = instance.CurrentUser

Property Value

Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the current user
Show: