DataObjectFieldAttribute Constructor (Boolean)

 

Initializes a new instance of the DataObjectFieldAttribute class and indicates whether the field is the primary key for the data row.

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

public:
DataObjectFieldAttribute(
	bool primaryKey
)

Parameters

primaryKey
Type: System::Boolean

true to indicate that the field is in the primary key of the data row; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: