System.Web.UI.PersistenceModeAttribute Class

Defines the metadata attribute that specifies how an ASP.NET server control property or event is persisted to an ASP.NET page at design time. This class cannot be inherited.

See Also: PersistenceModeAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.All)]
public sealed class PersistenceModeAttribute : Attribute

Remarks

For more information about using attributes, see Extending Metadata Using Attributes.

Note:

The Web page designer in Visual Studio does not support the ResetPropertyName method that is optionally exposed by Windows Forms controls for property persistence. Server controls are serialized using methods provided by the System.Web.UI.Design.ControlPersister class. The implementation of these methods is driven by metadata attributes such as System.ComponentModel.DefaultValueAttribute, System.Web.UI.PersistenceModeAttribute, and System.ComponentModel.DesignerSerializationVisibilityAttribute.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0