Share via


SPWeb.Author property

Gets or sets a user object that represents the user who created the website. (Read-only in sandboxed solutions.)

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

Syntax

'Declaration
Public Property Author As SPUser
    Get
    Set
'Usage
Dim instance As SPWeb
Dim value As SPUser

value = instance.Author

instance.Author = value
public SPUser Author { get; set; }

Property value

Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the user who created the website.

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace