IModel.RemoveFieldAt Method
Namespace: NextDesign.Core
Description
Deletes the field value at the specified position in this instance.
If the specified field is an owned field, the model at the specified position is deleted.
If the specified field is a referenced field, only the reference association at the specified position is deleted, and the model is preserved.
Argument
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field name Cannot be null or an empty string. |
| index | int | Position Specify an index, starting from position 0. |
Return value
- void
Exceptions
| Name | Exception Class | Description |
|---|---|---|
| Invalid Argument | ExtensionArgumentException | When null or an empty string is specified for fieldName |
| Field Not Found | ExtensionFieldNotFoundException | When the specified field is not found in this instance's metaclass |
| Invalid Field Access | ExtensionIllegalFieldAccessException | When this method is executed on a field with a multiplicity limit of 1 |
| Invalid Index Range | ExtensionOutOfRangeException | When a negative number is specified for index or when a value greater than or equal to the number of elements in the field is specified for index |
| Invalid Operation | ExtensionInvalidOperationException | When an unoperable field is specified for the field name - Product line feature assignment field - Field with the System.Core tag When an invalid field is specified |