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 DatabaseObjects.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#
protected virtual string KeyFieldName()
Visual Basic
Protected Overridable Function KeyFieldName As String
Visual C++
protected:
virtual String^ KeyFieldName()

Return Value

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

Implements

IDatabaseObjects..::..KeyFieldName()()()()

Examples

CopyC#
Protected Overrides Function KeyFieldName() As String

    Return "ProductCode"

End Function

See Also