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

FeatureExtensions.ActivateFeature Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Activates a site collection or site scoped feature

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

Syntax

public static void ActivateFeature(this Site site, Guid featureID, Boolean sandboxed = False, Int32 pollingIntervalSeconds = 30)

Parameters

site

  Type: Microsoft.SharePoint.Client.Site
  Site to be processed

featureID

  Type: System.Guid
  ID of the feature to activate

(optional) sandboxed

  Type: System.Boolean
  Set to true if the feature is defined in a sandboxed solution

(optional) pollingIntervalSeconds

  Type: System.Int32
  The time in seconds between polls for "IsActive"

Return Value

Type: void

See also

© 2018 Microsoft