共用方式為


SPSiteAdministration Class

Provides an abstraction for operations that require administrator access to the content space of a site collection.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPSiteAdministration

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPSiteAdministration _
    Implements IDisposable
'Usage
Dim instance As SPSiteAdministration
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPSiteAdministration : IDisposable

Remarks

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPSiteAdministration Members

Microsoft.SharePoint.Administration Namespace