Share via


SPExportSettings.ExportPublicSchema Property

Gets or sets a value that specifies whether to use the public schema format when exporting a list field.

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

Syntax

Public Property ExportPublicSchema As Boolean
    Get
    Set

Dim instance As SPExportSettings
Dim value As Boolean

value = instance.ExportPublicSchema

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

Property Value

Type: System.Boolean
true if the export operation uses the public schema. Returns false if a list item field collection is retrieved directly from the database.
The default value is true.

Remarks

Retrieving the fields collection directly from the database (that is, setting this to false) is more efficient, both for import and export operations. However, there is a drawback in that the format for the fields schema that is stored in the database is internal and might change from one product version to another.

See Also

Reference

SPExportSettings Class

SPExportSettings Members

Microsoft.SharePoint.Deployment Namespace