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

TenantExtensions.SetSiteProperties Method

SharePoint Dev Documents|Last Updated: 6/22/2017
1 Contributor

Sets tenant site Properties

Assembly: OfficeDevPnP.Core.dll


public static void SetSiteProperties(this Tenant tenant, String siteFullUrl, String title, Nullable<Boolean> allowSelfServiceUpgrade, Nullable<SharingCapabilities> sharingCapability, Nullable<Int64> storageMaximumLevel, Nullable<Int64> storageWarningLevel, Nullable<Double> userCodeMaximumLevel, Nullable<Double> userCodeWarningLevel, Nullable<Boolean> noScriptSite, Boolean wait = True, Func<TenantOperationMessage, Boolean> timeoutFunction)



  Type: Microsoft.Online.SharePoint.TenantAdministration.Tenant
  A tenant object pointing to the context of a Tenant Administration site


  Type: System.String
  full url of site

(optional) title

  Type: System.String
  site title

(optional) allowSelfServiceUpgrade

  Type: System.Nullable<System.Boolean>
  Boolean value to allow serlf service upgrade

(optional) sharingCapability

  Type: System.Nullable<Microsoft.Online.SharePoint.TenantManagement.SharingCapabilities>
  SharingCapabilities enumeration value (i.e. Disabled/ExternalUserSharingOnly/ExternalUserAndGuestSharing/ExistingExternalUserSharingOnly)

(optional) storageMaximumLevel

  Type: System.Nullable<System.Int64>
  A limit on all disk space used by the site collection

(optional) storageWarningLevel

  Type: System.Nullable<System.Int64>
  A storage warning level for when administrators of the site collection receive advance notice before available storage is expended.

(optional) userCodeMaximumLevel

  Type: System.Nullable<System.Double>
  A value that represents the maximum allowed resource usage for the site/

(optional) userCodeWarningLevel

  Type: System.Nullable<System.Double>
  A value that determines the level of resource usage at which a warning e-mail message is sent

(optional) noScriptSite

  Type: System.Nullable<System.Boolean>
  Boolean value which allows to customize the site using scripts

(optional) wait

  Type: System.Boolean
  Id true this function only returns when the tenant properties are set, if false it will return immediately

(optional) timeoutFunction

  Type: System.Func<OfficeDevPnP.Core.TenantOperationMessage, System.Boolean>
  An optional function that will be called while waiting for the tenant properties to be set. If set will override the wait variable. Return true to cancel the wait loop.

Return Value

Type: void

See also

© 2018 Microsoft