Click or drag to resize

ICommenceDatabaseHasDuplicates Method

Checks if field contains duplicate values.

Namespace:  Vovin.CmcLibNet.Database
Assembly:  Vovin.CmcLibNet (in Vovin.CmcLibNet.dll) Version: 1.0.7729.42686
Syntax
bool HasDuplicates(
	string categoryName,
	string fieldName,
	bool caseSensitive = true
)

Parameters

categoryName
Type: SystemString
Categoryname.
fieldName
Type: SystemString
Fieldname.
caseSensitive (Optional)
Type: SystemBoolean
Perform case-sensitive check, default is true.

Return Value

Type: Boolean
true if duplicates are found.
Remarks
Commence allows for filtering on duplicate Name field values only, this method allows for checking other fieldtypes as well.
See Also