Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataObjectFieldAttribute Constructor (Boolean, Boolean)

 

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

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

public:
DataObjectFieldAttribute(
	bool primaryKey,
	bool isIdentity
)

Parameters

primaryKey
Type: System::Boolean

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

isIdentity
Type: System::Boolean

true to indicate that the field is an identity field that uniquely identifies the data row; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft