Table of contents
TOC
Collapse the table of content
Expand the table of content

TenantExtensions Class

SharePoint Dev Documents|Last Updated: 8/7/2017
|
1 Contributor

Class for deprecated tenant extension methods

Class for tenant extension methods

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Inheritance Hierarchy

System.Object

Syntax

public static class TenantExtensions

Extension Methods

NameDescription
AddAdministrators(Tenant, IEnumerable<UserEntity>, Uri, Boolean)Add a site collection administrator to a site collection
CheckIfSiteExists(Tenant, String, String)Returns if a site collection is in a particular status. If the url contains a sub site then returns true is the sub site exists, false if not. Status is irrelevant for sub sites
CreateSiteCollection(Tenant, SiteEntity, Boolean, Boolean, Func<TenantOperationMessage, Boolean>)Adds a SiteEntity by launching site collection creation and waits for the creation to finish
CreateSiteCollection(Tenant, String, String, String, String, Int32, Int32, Int32, Int32, Int32, UInt32, Boolean, Boolean, Func<TenantOperationMessage, Boolean>)Launches a site collection creation and waits for the creation to finish
DeleteSiteCollection(Tenant, String, Boolean, Func<TenantOperationMessage, Boolean>)Deletes a site collection
DeleteSiteCollectionFromRecycleBin(Tenant, String, Boolean, Func<TenantOperationMessage, Boolean>)Deletes a site collection from the site collection recycle bin
DeployApplicationPackageToAppCatalog(Tenant, String, String, Boolean, Boolean)Adds a package to the tenants app catalog and by default deploys it if the package is a client side package (sppkg)
DeployApplicationPackageToAppCatalog(Tenant, String, String, Boolean, Boolean, Boolean)Adds a package to the tenants app catalog and by default deploys it if the package is a client side package (sppkg)
DeployApplicationPackageToAppCatalog(Tenant, String, String, String, Boolean, Boolean)Adds a package to the tenants app catalog and by default deploys it if the package is a client side package (sppkg)
GetAppCatalog(Tenant)Gets the Uri for the tenant's app catalog site (if that one has already been created)
GetOneDriveSiteCollections(Tenant)Get OneDrive site collections by iterating through all user profiles.
GetSiteCollections(Tenant, Int32, Int32, Boolean, Boolean)Returns all site collections in the current Tenant based on a startIndex. IncludeDetail adds additional properties to the SPSite object.
GetSiteGuidByUrl(Tenant, String)Gets the ID of site collection with specified URL
GetSiteGuidByUrl(Tenant, Uri)Gets the ID of site collection with specified URL
GetUserProfileServiceClient(Tenant)Gets the UserProfileService proxy to enable calls to the UPA web service.
GetWebTemplates(Tenant, UInt32, Int32)Returns available webtemplates/site definitions
IsSiteActive(Tenant, String)Checks if a site collection is Active
SetSiteLockState(Tenant, String, SiteLockState, Boolean, Func<TenantOperationMessage, Boolean>)Sets a site to Unlock access or NoAccess. This operation may occur immediately, but the site lock may take a short while before it goes into effect.
SetSiteProperties(Tenant, String, String, Nullable<Boolean>, Nullable<SharingCapabilities>, Nullable<Int64>, Nullable<Int64>, Nullable<Double>, Nullable<Double>, Nullable<Boolean>, Boolean, Func<TenantOperationMessage, Boolean>)Sets tenant site Properties
SiteExists(Tenant, String)Checks if a site collection exists, relies on tenant admin API. Sites that are recycled also return as existing sites
SubSiteExists(Tenant, String)Checks if a sub site exists

See also

© 2018 Microsoft