다음을 통해 공유


SPSite.Owner Property

Gets or sets the owner of the site collection. (Read-only in sandboxed solutions.)

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property Owner As SPUser
    Get
    Set
'Usage
Dim instance As SPSite
Dim value As SPUser

value = instance.Owner

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

Property Value

Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the owner.

Remarks

The user that is specified by the Owner property should not be identical to the user that is specified by the SecondaryContact property.

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace