ChatUserInfo GetUniqueNameWhereCondition Method Kentico 8.0 API Reference
Constructs base where condition for checking column value uniqueness. If DisplayName column is being checked, it modifies where condition, so only non-anonymous users are checked.

Namespace: CMS.Chat
Assembly: CMS.Chat (in CMS.Chat.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

columnName
Type: OnlineSystem String
Name of the column in which the uniqueness should be preserved (CodeNameColumn/DisplayNameColumn)
searchName
Type: OnlineSystem String
Name which should be saved in the column (evenutally with suffix)
currentObjectId
Type: OnlineSystem Int32
ID of the current object (this object will be excluded from the search for duplicate names)
exactMatch
Type: OnlineSystem Boolean
If true, the names must match exactly

Return Value

Type: WhereCondition
Where condition used to check for unique name
See Also