BaseInfoGeneralizedInfoWrapperGetUniqueName Method |
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: 13.0.131
Syntax public string GetUniqueName(
string name,
int currentObjectId,
string columnName,
string suffixFormat,
string suffixFormatRegex,
bool ensureLength
)
Parameters
- name
- Type: SystemString
Original code name - currentObjectId
- Type: SystemInt32
Current object ID - columnName
- Type: SystemString
Name of the column in which the uniqueness should be preserved (CodeNameColumn/DisplayNameColumn) - suffixFormat
- Type: SystemString
Formatting string for the suffix (for example '_{0}' for code name or ' ({0})' for display name - suffixFormatRegex
- Type: SystemString
Regex for formatting suffix (needed to remove suffix before finding the possible match in DB) - ensureLength
- Type: SystemBoolean
If true, maximal code name length is ensured
Return Value
Type:
StringSee Also