Skip to main content

IModel.RemoveFieldAt method

Namespace: NextDesign.Core

Description

Removes the field value at the specified position in this instance.
Deletes the model at the specified position if the specified field is the owning field.
If the specified field is a reference field, remove only the reference relationship at the specified position and the model is preserved.

argument

NameTypeDescription
fieldNamestringField name
You cannot specify null or an empty string.
indexintPosition
Specifies the index starting at 0.

Return value

  • void

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in this instance's metaclass
Illegal field accessExtensionIllegalFieldAccessExceptionIf this method is executed for a field with a maximum multiplicity of 1
Invalid index rangeExtensionOutOfRangeExceptionWhen a negative number is specified for index
or when a value greater than the number of elements in the corresponding field is specified for index
Illegal operationExtensionInvalidOperationExceptionIf an inoperable field is specified in the field name
- Feature assignment field of product line
- Field with System.Core tag