SPSiteAdministration members

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

The SPSiteAdministration type exposes the following members.

Constructors

  Name Description
Public method SPSiteAdministration(Guid) Initializes a new instance of the SPSiteAdministration class as specified by the site ID.
Public method SPSiteAdministration(String) Initializes a new instance of the SPSiteAdministration class as specified by the URL.

Top

Properties

  Name Description
Public property AdministrationSiteType The administration site type of this site collection.
Public property AllowSelfServiceUpgrade whether version to version upgrade is allowed on this site.
Public property AverageResourceUsage Specifies the average resource usage of the site collection, over the configured window in days.
Public property CurrentResourceUsage Specifies the current resource usage of the site collection, to this point.
Public property Description Gets the description of the top-level site in the collection.
Public property DiskUsed Gets a value indicating the amount of disk space used by the site collection.
Public property InheritAllowSelfServiceUpgradeSetting whether the AllowSelfServiceUpgrade value is inherit from parent.
Public property LockIssue Gets or sets a value indicating the reason for the lock, or additional lock information.
Public property OwnerDisplayName Display name of the site owner.
Public property OwnerEmail Gets the e-mail address of the site owner.
Public property OwnerLoginName Gets or sets a value containing the user name of the site owner.
Public property Quota Gets or sets the quota definition for the site collection.
Public property ReadLocked Gets or sets a value indicating whether the site is blocked for read access.
Public property ReadOnly Gets or sets a Boolean value that specifies whether the site is run in read-only mode.
Public property RootWebProvisioned Gets the value that represents the provisioned status of the top-level site in the collection.
Public property RootWebTemplate Gets the value that represents the name of the template applied to the top-level site in the collection.
Public property SecondaryContactDisplayName Display name of the secondary site owner.
Public property SecondaryContactEmail Email address of the secondary site owner.
Public property SecondaryContactLoginName Gets or sets the value indicating the Login name of the secondary owner of the site collection.
Public property SiteSubscription The site subscription associated with this site.
Public property Title Returns the title of the top-level site in this site collection.
Public property Url Gets the URL of the top-level site in this site collection.
Public property UsersCount Get the number of users in this site collection.
Public property WriteLocked Gets or sets a value indicating whether the site is blocked for write access.

Top

Methods

  Name Description
Public method AddWeb Adds a new site with the specified properties to the site collection.
Public method ApplyWebTemplate Applies a template to the top-level site in the collection.
Public method ClearMaintenanceMode
Public method CreatePreviewSPSite Queues a request to create a preview site if there are none existing for the given site Throws InvalidOperationException if there is an request already or if there is an existing preview site for the given site
Public method Delete() Deletes the site collection.
Public method Delete(Boolean) Deletes the site collection with the option of deleting the Active Directory accounts for this site collection.
Public method Delete(Boolean, Boolean) Deletes the site collection with the option of deleting the Active Directory accounts for this site collection.
Public method Dispose Immediately releases the unmanaged resources used by the SPSite object.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See also

Reference

SPSiteAdministration class

Microsoft.SharePoint.Administration namespace