System.Web.UI.WebControls.WebParts.WebPartExportMode Enumeration

Specifies whether all, some, or none of a System.Web.UI.WebControls.WebParts.WebPart control's properties can be exported.


public enum WebPartExportMode


A value from the System.Web.UI.WebControls.WebParts.WebPartExportMode enumerator can be applied to the WebPart.ExportMode property to specify which properties from a Web Parts control can be exported. By default, the properties of a System.Web.UI.WebControls.WebParts.WebPart control cannot be exported and the control's WebPart.ExportMode property is set to WebPartExportMode.None. To enable exporting all properties for the control, set the WebPart.ExportMode value to WebPartExportMode.All. To export only certain properties while preventing the export of properties that contain sensitive data, you set the property value to WebPartExportMode.NonSensitiveData.

A property can be marked as sensitive through the System.Web.UI.WebControls.WebParts.PersonalizableAttribute attribute.


To enable the export feature for a Web application that includes Web Parts controls, in the Web.config file for your application, you must add an attribute to the <webParts> element within the <system.web> section, as in the following markup.

<webParts enableExport="true">



Member NameDescription

All of a Web Parts control's properties can be exported.


None of a Web Parts control's properties can be exported.


Only properties of a Web Parts control that have been defined as non-sensitive can be exported.


Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0