SPSolutionLanguagePack.Deploy method (DateTime, Boolean, Collection<SPWebApplication>, Boolean)
Creates a timer job to deploy the language pack to the specified web applications at the specified time.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Deploy ( _
dt As DateTime, _
globalInstallWPPackDlls As Boolean, _
webApplications As Collection(Of SPWebApplication), _
force As Boolean _
)
'Usage
Dim instance As SPSolutionLanguagePack
Dim dt As DateTime
Dim globalInstallWPPackDlls As Boolean
Dim webApplications As Collection(Of SPWebApplication)
Dim force As Boolean
instance.Deploy(dt, globalInstallWPPackDlls, _
webApplications, force)
public void Deploy(
DateTime dt,
bool globalInstallWPPackDlls,
Collection<SPWebApplication> webApplications,
bool force
)
Parameters
dt
Type: System.DateTimeA DateTime object containing the time to run the timer job.
globalInstallWPPackDlls
Type: System.BooleanNot used.
webApplications
Type: System.Collections.ObjectModel.Collection<SPWebApplication>A collection of SPWebApplication objects to deploy to when there are application-specific entities in the language pack.
force
Type: System.BooleanIf true, then a language pack can be redeployed; if false, and the language pack has already been deployed, an exception is raised.
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 deploy a language-neutral solution, see SPSolution.