Share via


SPExportSettings.OverwriteExistingDataFile Property

Gets or sets a value indicating whether you can overwrite an existing content migration package file when running export.

Namespace:  Microsoft.SharePoint.Deployment
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

Public Property OverwriteExistingDataFile As Boolean
    Get
    Set

Dim instance As SPExportSettings
Dim value As Boolean

value = instance.OverwriteExistingDataFile

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

Property Value

Type: System.Boolean
true to allow reuse of the content migration package CAB file; otherwise, false.

Remarks

If this property is set to false, an exception is thrown if the specified data file already exists. If this property is set to true and the existing data file spans more than one package, the entire file collection will be deleted before generating new output.

See Also

Reference

SPExportSettings Class

SPExportSettings Members

Microsoft.SharePoint.Deployment Namespace