FormInfoHelperGetUniqueFieldNameInternal Method (ISetString, String) |
Gets unique name for name within the specified existingFieldNames by appending
a suffix containing ordinal number.
Namespace: CMS.FormEngineAssembly: CMS.FormEngine (in CMS.FormEngine.dll) Version: 13.0.131
Syntax protected virtual string GetUniqueFieldNameInternal(
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:
StringReturns name derived from
name which is unique within the specified names.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown when existingFieldNames or name is null. |
ArgumentException | Thrown when name is an empty string. |
See Also