Version

PrimaryKey Property (IDataSourceAdapter)

Contains primary key fields.
Syntax
'Declaration
 
Property PrimaryKey As DataField()
DataField[] PrimaryKey {get; set;}
Remarks
The primary key must be set by the data adapter implementation. For the data sources when the key cannot be determined a new DataField object must be created and added to the Schema. The new field must contain a unique value in every record of the undelying data source. Generally an original index inside of the records collection can be used to fill the field.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also