Specifies the field name that uniquely identifies each object within the collection. Typically, this is the field name of an identity or auto increment field. If the SubSetAttribute has been specified then the strDistinctFieldName need only be unique within the subset not the entire table. The strDistinctFieldName and can be identical to the field name specified with a KeyField attribute. This attribute must be specified on a DatabaseObjects*UsingAttributes class. This attribute is used to implement the IDatabaseObjects.DistinctFieldName and IDatabaseObjects.DistinctFieldAutoIncrements functions.

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


public class DistinctFieldAttribute : Attribute
Visual Basic
Public Class DistinctFieldAttribute _
	Inherits Attribute
Visual C++
public ref class DistinctFieldAttribute : public Attribute


<DistinctField("CustomerID", bAutoIncrements:=True)>
Public Class Customers

Inheritance Hierarchy


See Also