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

FeatureExtensions.DeactivateFeature Method

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

Deactivates a site collection or site scoped feature

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

Syntax

public static void DeactivateFeature(this Site site, Guid featureID, Int32 pollingIntervalSeconds = 30)

Parameters

site

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

featureID

  Type: System.Guid
  ID of the feature to deactivate

(optional) pollingIntervalSeconds

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

Return Value

Type: void

See also

© 2018 Microsoft