Compartilhar via


SPSite.SystemAccount Property

Gets the system account of the site collection.

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

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public ReadOnly Property SystemAccount As SPUser
    Get
'Usage
Dim instance As SPSite
Dim value As SPUser

value = instance.SystemAccount
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public SPUser SystemAccount { get; }

Property Value

Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the system account.

Remarks

The system account is a special SPUser object that has full control over all content in the site collection

See Also

Reference

SPSite Class

SPSite Members

Microsoft.SharePoint Namespace