SPSolution.Deploy method (DateTime, Boolean, Collection<SPWebApplication>, Boolean)
Creates a timer job to deploy the language-neutral solution to the specified web applications at a specified time.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration Public Sub Deploy ( _ dt As DateTime, _ globalInstallWPPackDlls As Boolean, _ webApplications As Collection(Of SPWebApplication), _ force As Boolean _ ) 'Usage Dim instance As SPSolution Dim dt As DateTime Dim globalInstallWPPackDlls As Boolean Dim webApplications As Collection(Of SPWebApplication) Dim force As Boolean instance.Deploy(dt, globalInstallWPPackDlls, _ webApplications, force)
- Type: System.DateTime
A DateTime object containing the time to run the timer job.
- Type: System.Boolean
If true, then strong-named assemblies are installed in the GAC; if false, they are installed to the bin directory of the application.
- Type: System.Collections.ObjectModel.Collection<SPWebApplication>
A collection of SPWebApplication objects to deploy to when there are application-specific entities in the solution.
- Type: System.Boolean
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.