Should return whether the Distinct field as specified in the associated collection's IDatabaseObject.DistinctField is an identity (Autonumber in Microsoft Access) or is a unique identifier field. If set to either value then the IDatabaseObject.DistinctValue value is automatically set when a new object is saved. This function takes precedence over the obsolete DistinctFieldAutoIncrements() and should be used instead of DistinctFieldAutoIncrements. Returning true from DistinctFieldAutoIncrements is logically equivalent to returning SQL.FieldValueAutoAssignmentType.AutoIncrement from DistinctFieldAutoAssignment. However, if DistinctFieldAutoIncrements returns true and DistinctFieldAutoAssignment returns SQL.FieldValueAutoAssignmentType.None then DistinctFieldAutoIncrements is used.

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

Syntax

C#
FieldValueAutoAssignmentType DistinctFieldAutoAssignment()
Visual Basic
Function DistinctFieldAutoAssignment As FieldValueAutoAssignmentType
Visual C++
FieldValueAutoAssignmentType DistinctFieldAutoAssignment()

Return Value

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

Examples

CopyC#
Protected Function DistinctFieldAutoAssignment() As SQL.FieldValueAutoAssignmentType Implements IDatabaseObjects.DistinctFieldAutoAssignment

    Return SQL.FieldValueAutoAssignmentType.AutoIncrement

End Function

See Also