Share via


SPSolutionLanguagePack.Retract method (DateTime, Collection<SPWebApplication>)

Creates a timer job to retract the language pack from the specified web applications at a particular time.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub Retract ( _
    dt As DateTime, _
    webApplications As Collection(Of SPWebApplication) _
)
'Usage
Dim instance As SPSolutionLanguagePack
Dim dt As DateTime
Dim webApplications As Collection(Of SPWebApplication)

instance.Retract(dt, webApplications)
public void Retract(
    DateTime dt,
    Collection<SPWebApplication> webApplications
)

Parameters

  • dt
    Type: System.DateTime

    A DateTime object containing the time to run the timer job.

Remarks

By default, no application pools are reset after deploying or retracting a language pack 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.

If you are running multiple jobs and the order in which they run is important, make sure that the specified times are sufficient for each job to complete before the next job is submitted. When multiple jobs are in the pool, the order in which they run is unpredictable.

To retract a language neutral solution, see SPSolution.

See also

Reference

SPSolutionLanguagePack class

SPSolutionLanguagePack members

Retract overload

Microsoft.SharePoint.Administration namespace