SPSite.Owner 属性

Gets or sets the owner of the site collection. (Read-only in 沙盒解决方案.)

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Property Owner As SPUser
    Get
    Set
用法
Dim instance As SPSite
Dim value As SPUser

value = instance.Owner

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

属性值

类型:Microsoft.SharePoint.SPUser
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.

另请参阅

引用

SPSite 类

SPSite 成员

Microsoft.SharePoint 命名空间