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
Available since 2.0
Return to top
Show: