Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Server Technologies
SDK Documentation
SPSite Class
SPSite Properties
 Owner Property
SPSite.Owner Property (Microsoft.SharePoint)
Gets or sets the owner of the site collection.

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

Visual Basic (Declaration)
Public Property Owner As SPUser
Visual Basic (Usage)
Dim instance As SPSite
Dim value As SPUser

value = instance.Owner

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

Property Value

An SPUser object that represents the owner.

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker