Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides an abstraction for operations that require administrator access to the content space of a site collection.
System.Object
Microsoft.SharePoint.Administration.SPSiteAdministration
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SPSiteAdministration _
Implements IDisposable
'Usage
Dim instance As SPSiteAdministration
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SPSiteAdministration : IDisposable
The SPSiteAdministration class provides access to selected site collection properties without requiring access to the site collection itself.
This class encapsulates SPSite and SPWeb objects that contain a request that expects the user to be a global administrator, and that automatically grants full content rights to such a user.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Please sign in to use this experience.
Sign in