Click or drag to resize
TypeHelperEnsureMaxCodeNameLength Method
Ensures maximal allowed code name length.

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
public static string EnsureMaxCodeNameLength(
	string codeName,
	int maxLength
)

Parameters

codeName
Type: SystemString
Original name
maxLength
Type: SystemInt32
Maximum code name length, if not set (0), cuts the code name to the general MaxCodeNameLength

Return Value

Type: String
See Also