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

Namespace: CMS.FormEngine
Assembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 12.0.0
Syntax
C#
public static string GetUniqueFieldName(
	ISet<string> existingFieldNames,
	string name
)

Parameters

existingFieldNames
Type: System.Collections.GenericISetString
Set of existing field names in 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 specified names.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when existingFieldNames or name is null.
ArgumentExceptionThrown when name is an empty string.
See Also