Partilhar via


SPUser.IsSiteAdmin Property

Gets or sets a Boolean value that specifies whether the user is a site collection administrator.

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

Syntax

'Declaration
Public Property IsSiteAdmin As Boolean
    Get
    Set
'Usage
Dim instance As SPUser
Dim value As Boolean

value = instance.IsSiteAdmin

instance.IsSiteAdmin = value
public bool IsSiteAdmin { get; set; }

Property Value

Type: System.Boolean
true if the user is a site collection administrator; otherwise, false.

See Also

Reference

SPUser Class

SPUser Members

Microsoft.SharePoint Namespace