Click or drag to resize
FormInfoHelperGetUniqueFieldNameInternal Method (FormInfo, String)
Gets unique name for name within the specified formInfo by appending a suffix containing ordinal number.

Namespace: CMS.FormEngine
Assembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 12.0.0
Syntax
C#
protected virtual string GetUniqueFieldNameInternal(
	FormInfo formInfo,
	string name
)

Parameters

formInfo
Type: CMS.FormEngineFormInfo
Form info for which the name is to be unique.
name
Type: SystemString
Name from which to create a unique name.

Return Value

Type: String
Returns name derived from name which is unique within the form.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when formInfo or name is null.
ArgumentExceptionThrown when name is an empty string.
See Also