SPSolution.Retract Method (DateTime)

Creates a timer job to retract the specified solution at a particular time.

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

Syntax

'Declaration
Public Sub Retract ( _
    dt As DateTime _
)
'Usage
Dim instance As SPSolution
Dim dt As DateTime

instance.Retract(dt)
public void Retract(
    DateTime dt
)

Parameters

  • dt
    Type: System.DateTime

    A DateTime object that indicates when to run the timer job.

Remarks

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.

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 package, see SPSolutionLanguagePack.

See Also

Reference

SPSolution Class

SPSolution Members

Retract Overload

Microsoft.SharePoint.Administration Namespace