 | ICommenceDatabaseHasDuplicates Method |
Checks if field contains duplicate values.
Namespace:
Vovin.CmcLibNet.Database
Assembly:
Vovin.CmcLibNet (in Vovin.CmcLibNet.dll) Version: 1.0.7729.42686
Syntaxbool HasDuplicates(
string categoryName,
string fieldName,
bool caseSensitive = true
)
Function HasDuplicates (
categoryName As String,
fieldName As String,
Optional caseSensitive As Boolean = true
) As Boolean
Parameters
- categoryName
- Type: SystemString
Categoryname. - fieldName
- Type: SystemString
Fieldname. - caseSensitive (Optional)
- Type: SystemBoolean
Perform case-sensitive check, default is true.
Return Value
Type:
Booleantrue if duplicates are found.
RemarksCommence allows for filtering on duplicate Name field values only, this method allows for checking other fieldtypes as well.
See Also