共用方式為


SPSolutionLanguagePack.Upgrade Method (String, DateTime)

Upgrades the language pack from a previous version to the current version using the specified solution file, and scheduled to run at a specified time.

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

Syntax

'Declaration
Public Sub Upgrade ( _
    path As String, _
    dt As DateTime _
)
'Usage
Dim instance As SPSolutionLanguagePack
Dim path As String
Dim dt As DateTime

instance.Upgrade(path, dt)
public void Upgrade(
    string path,
    DateTime dt
)

Parameters

  • dt
    Type: System.DateTime

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

Remarks

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.

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.

See Also

Reference

SPSolutionLanguagePack Class

SPSolutionLanguagePack Members

Upgrade Overload

Microsoft.SharePoint.Administration Namespace