ValidationHelper GetCodeName Method (Object, String, Int32, Boolean, Boolean, String, Boolean)Kentico 8.0 API Reference
Gets the code name created from the given string.

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

Parameters

name
Type: OnlineSystem Object
Display name
replacement (Optional)
Type: OnlineSystem String
Replacement string for invalid characters
maxLength (Optional)
Type: OnlineSystem Int32
Maximal length of the codename
useUnicode (Optional)
Type: OnlineSystem Boolean
If true, Unicode letters are allowed in the codename, otherwise only a-Z are allowed
removeDiacritics (Optional)
Type: OnlineSystem Boolean
If true, diacritics is removed from Latin characters
allowedCharacters (Optional)
Type: OnlineSystem String
Characters which should be allowed within the current name
useCamelCase (Optional)
Type: OnlineSystem Boolean
If true, camel case is used for the code name

Return Value

Type: OnlineString
See Also