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

WebExtensions.UninstallSolution Method

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

Uninstalls a sandbox solution package (.WSP) file

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

Syntax

public static void UninstallSolution(this Site site, Guid packageGuid, String fileName, Int32 majorVersion = 1, Int32 minorVersion = 0)

Parameters

site

  Type: Microsoft.SharePoint.Client.Site
  Site collection to install to

packageGuid

  Type: System.Guid
  ID of the solution, from the solution manifest

fileName

  Type: System.String
  filename of the WSP file to uninstall

(optional) majorVersion

  Type: System.Int32
  Optional major version of the solution, defaults to 1

(optional) minorVersion

  Type: System.Int32
  Optional minor version of the solution, defaults to 0

Return Value

Type: void

See also

© 2018 Microsoft