SPSolution.Deploy Method (DateTime, Boolean, Generic , Boolean)
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
public void Deploy ( DateTime dt, bool globalInstallWPPackDlls, Collection<SPWebApplication> webApplications, bool force )
A DateTime object containing the time to run the timer job.
Used only in the deployment of web part packages.
If true, then strong-named assemblies are installed in the GAC; if false, they are installed to the bin directory of the application.
A collection of SPWebApplication objects to deploy to when there are application-specific entities in the solution or Web Part package.
If true, then a solution can be redeployed; if false, and the solution has already been deployed, an exception is raised.
If a solution contains assemblies you can set the DeploymentTarget attribute in the solution manifest to GlobalAssemblyCache to place assemblies in the global assembly cache, or WebApplication to deploy them to the bin directory. If the attribute is not specified, assemblies are deployed to the bin directory by default.
When deploying assemblies using the object model, no warnings are issued that assemblies are being installed into the global assembly cache. (When using stsadm, the
-allowgacdeploymentflag flag is required, and when using the user interface a warning is issued that assemblies are going to be installed into the global assembly cache.)
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 package, see SPSolutionLanguagePack.