Compartilhar via


SPExportSettings.AutoGenerateDataFileName Property

Gets or sets a value that indicates whether a file name for the content migration package should be automatically generated.

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

Syntax

'Declaration
Public Property AutoGenerateDataFileName As Boolean
    Get
    Set
'Usage
Dim instance As SPExportSettings
Dim value As Boolean

value = instance.AutoGenerateDataFileName

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

Property Value

Type: System.Boolean
Returns true to automatically generate the file name for a content migration package; otherwise, false. The default is false.

Remarks

When set to true, the file name value is taken from the baseFileName parameter on the SPDeploymentSettings class constructor (SPDeploymentSettings).

When the export generates multiple .cmp files, the file names are appended numerically. For example, where the baseFileName parameter is "MyWeb", and where the export operation produces multiple .cmp files, the migration packages are named "MyWeb1.cmp", "MyWeb2.cmp", and so forth.

See Also

Reference

SPExportSettings Class

SPExportSettings Members

Microsoft.SharePoint.Deployment Namespace