IModel.RemoveFieldAt Method
Namespace: NextDesign.Core
Description
Deletes the field value at the specified position of this instance.
If the specified field is an owned field, the model at the specified position is deleted.
If the specified field is a reference field, only the reference relationship at the specified position is deleted and the model is maintained.
Arguments
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
index | int | Position Specify an index with the first position being 0. |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null or an empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in the metaclass of this instance |
Illegal field access | ExtensionIllegalFieldAccessException | If this method is executed for a field whose upper limit of multiplicity is 1 |
Invalid index range | ExtensionOutOfRangeException | If a negative number is specified for index or if a value equal to or greater than the number of elements in the corresponding field is specified for index |
Invalid operation | ExtensionInvalidOperationException | If an invalid field is specified for the field name - Feature assignment field of a product line - Field with the System.Core tag If an invalid field is specified |