DataObjectAttribute Constructor (Boolean)

Initializes a new instance of the DataObjectAttribute class and indicates whether an object is suitable for binding to an ObjectDataSource object.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public DataObjectAttribute(
	bool isDataObject
)

Parameters

isDataObject
Type: System.Boolean

true if the object is suitable for binding to an ObjectDataSource object; otherwise, false.

Use the DataObjectAttribute(Boolean) constructor to indicate to a design-time class such as the ObjectDataSourceDesigner class that an object should be excluded from the list of suitable objects for binding to an ObjectDataSource object.

The IsDataObject property is set to the value of the isDataObject parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft