Returns the unique code name for the specified object, does not check duplicity if duplicity occurs within the currentObjectId.
Namespace: CMS.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- name
- Type: System String
Original code name
- currentObjectId
- Type: System Int32
Current object ID
- columnName
- Type: System String
Name of the column in which the uniqueness should be preserved (CodeNameColumn/DisplayNameColumn)
- suffixFormat
- Type: System String
Formatting string for the suffix (for example '_{0}' for code name or ' ({0})' for display name
- suffixFormatRegex
- Type: System String
Regex for formatting suffix (needed to remove suffix before finding the possible match in DB)
- ensureLength
- Type: System Boolean
If true, maximal code name length is ensured
Return Value
Type: StringSee Also