BaseInfo GetUniqueName Method Kentico 8.1 API Reference
Returns the unique code name for the specified object, does not check duplicity if duplicity occurs within the currentObjectId.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

name
Type: OnlineSystem String
Original code name
currentObjectId
Type: OnlineSystem Int32
Current object ID
columnName
Type: OnlineSystem String
Name of the column in which the uniqueness should be preserved (CodeNameColumn/DisplayNameColumn)
suffixFormat
Type: OnlineSystem String
Formatting string for the suffix (for example '_{0}' for code name or ' ({0})' for display name
suffixFormatRegex
Type: OnlineSystem String
Regex for formatting suffix (needed to remove suffix before finding the possible match in DB)
ensureLength
Type: OnlineSystem Boolean
If true, maximal code name length is ensured

Return Value

Type: OnlineString
See Also