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.
Assembly: System.Web (in System.Web.dll)
Thetype exposes the following members.
|Equals||Infrastructure. Compares the object against another object. (Overrides Attribute.Equals(Object).)|
|GetHashCode||Infrastructure. Provides a hash value for a attribute. (Overrides Attribute.GetHashCode().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|IsDefaultAttribute||Infrastructure. Indicates whether the object is of the default type. (Overrides Attribute.IsDefaultAttribute().)|
|Match||When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|Attribute||Specifies that the property or event persists in the opening tag of the server control as an attribute. This field is read-only.|
|Default||Specifies the default type for the class. The default is PersistenceMode.Attribute. This field is read-only.|
|EncodedInnerDefaultProperty||Specifies that a property is HTML-encoded and persists as the only inner content of the ASP.NET server control. This field is read-only.|
|InnerDefaultProperty||Specifies that a property persists as the only inner content of the ASP.NET server control. This field is read-only.|
|InnerProperty||Specifies that the property persists as a nested tag within the opening and closing tags of the server control. This field is read-only.|
|_Attribute.GetIDsOfNames||Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from Attribute.)|
|_Attribute.GetTypeInfo||Retrieves the type information for an object, which can be used to get the type information for an interface. (Inherited from Attribute.)|
|_Attribute.GetTypeInfoCount||Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from Attribute.)|
|_Attribute.Invoke||Provides access to properties and methods exposed by an object. (Inherited from Attribute.)|
For more information about using attributes, see Extending Metadata Using Attributes.
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 ControlPersister class. The implementation of these methods is driven by metadata attributes such as DefaultValueAttribute, , and DesignerSerializationVisibilityAttribute.
Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.