System.ComponentModel.DataObjectAttribute Class

Identifies a type as an object suitable for binding to an System.Web.UI.WebControls.ObjectDataSource object. This class cannot be inherited.

See Also: DataObjectAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class DataObjectAttribute : Attribute

Remarks

Use the System.ComponentModel.DataObjectAttribute attribute to identify an object as suitable for use by an System.Web.UI.WebControls.ObjectDataSource object. Design-time classes such as the System.Web.UI.Design.WebControls.ObjectDataSourceDesigner class use the System.ComponentModel.DataObjectAttribute attribute to present suitable objects to bind to an System.Web.UI.WebControls.ObjectDataSource object.

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

Requirements

Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0