Skip to main content

IModel.RemoveFieldAt method

Namespace: NextDesign.Core

Description

Deletes the field value at the specified position for this instance. If the specified field is a owned field, delete the model at the specified position. If the specified field is a reference field, only the reference association at the specified position is removed and the model is maintained.

argument

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.
indexintPosition
Specify the index whose start position is 0.

Return value

  • void

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance
Illegal field accessExtensionIllegalFieldAccessExceptionWhen this method is executed for a field with a multiplicity limit of 1
Invalid index rangeExtensionOutOfRangeExceptionWhen a negative number is specified for index
or when a value greater than or equal to the number of elements in the corresponding field is specified for index
Illegal operationExtensionInvalidOperationExceptionWhen an inoperable field is specified in the field name
-Product line feature assignment field
-Field with System.Core tag