Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPSolution.RetractLocal Method (Collection<SPWebApplication>)

Retracts the solution from the specified web applications on the local server for trouble-shooting purposes.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

public void RetractLocal(
	Collection<SPWebApplication> webApplications
)

Parameters

webApplications
Type: System.Collections.ObjectModel.Collection<SPWebApplication>

A collection of SPWebApplication objects from which to retract the solution.

Caution noteCaution

The DeployLocal and RetractLocal() methods should be used only to temporarily deploy or retract a solution from a particular server for trouble-shooting purposes. At all other times, the front-end web servers must be identically configured.

When a solution is retracted, all files for that solution are retracted, even if another solution points to the same file. This can be avoided by ensuring that each solution points to a unique set of files.

By default, no application pools are reset after deploying or retracting a solution using the object model. To reset the application pool manually, you can stop and restart the application pool for the web application to which you are deploying or retracting the solution.

To retract a language package, see SPSolutionLanguagePack.

Show:
© 2015 Microsoft