This property should return the field name that uniquely identifies each object within the collection. As opposed to the ordinal/index position, the key field provides another method of accessing a particular object within the collection. The key field must be unique within the collection. If the IDatabaseObjects.Subset function has been implemented then the key field only needs to be unique within the specified subset, not the entire table. Implementing this function is optional.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
string KeyFieldName()
Visual Basic
Function KeyFieldName As String
Visual C++
String^ KeyFieldName()

Return Value

[Missing <returns> documentation for "M:DatabaseObjects.IDatabaseObjects.KeyFieldName"]

Examples

CopyC#
Protected Function KeyFieldName() As String Implements IDatabaseObjects.KeyFieldName

    Return "ProductCode"

End Function

See Also