Click or drag to resize
ValidatorIsCodeName Method
Determines whether source control's value is code name.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public Validator IsCodeName(
	Object source,
	string errorMessage,
	bool useUnicode = false
)

Parameters

source
Type: SystemObject
Control to validate
errorMessage
Type: SystemString
It is returned when control's value is not code name
useUnicode (Optional)
Type: SystemBoolean
If true, unicode letters are allowed in codename

Return Value

Type: Validator
See Also