Share via


ContentDeploymentJob.HostingSupportEnabled property

Gets or sets a Boolean value that indicates if hosting support is enabled for the job.

Namespace:  Microsoft.SharePoint.Publishing.Administration
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Property HostingSupportEnabled As Boolean
    Get
    Set
'Usage
Dim instance As ContentDeploymentJob
Dim value As Boolean

value = instance.HostingSupportEnabled

instance.HostingSupportEnabled = value
public bool HostingSupportEnabled { get; set; }

Property value

Type: System.Boolean

Remarks

The default value is false.

If the content deployment job is set up for hosted sites, setting the option to true gives the administrator of the hosted sites an ability to place the sites in or out of content deployment. This means that if the HostingSupportEnabled property is set to true, then when the content deployment job runs it will check if the source site collection is currently marked to be deployed. If it is not marked to deploy, then the jobs are effectively no operation. The job also could be marked as cancelled for an asynchronous run.

See also

Reference

ContentDeploymentJob class

ContentDeploymentJob members

Microsoft.SharePoint.Publishing.Administration namespace