System.Web.UI.WebControls.WebParts.WebPart.ExportMode Property

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

Syntax

public virtual WebPartExportMode ExportMode { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

By default, a System.Web.UI.WebControls.WebParts.WebPart control cannot be exported and its 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.

To export property value descriptions for a System.Web.UI.WebControls.WebParts.WebPart control, the properties must also be marked with the Personalizable attribute in the metadata for the property's source code. For details, see System.Web.UI.WebControls.WebParts.PersonalizableAttribute.

Note:

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">

</webParts>

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

The personalization scope of this property is set to PersonalizationScope.Shared and can be modified only by authorized users. For more information, see System.Web.UI.WebControls.WebParts.PersonalizableAttribute and Web Parts Personalization Overview.

Requirements

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