IModel.RemoveField Method
Namespace: NextDesign.Core
Description
Deletes the value of the specified field of this instance.
If the specified field is an owned field, the specified model is deleted.
If the specified field is a reference field, only the reference relationship is deleted and the model is maintained.
Note that if the model specified to be deleted is not included in the specified field, nothing is done and the program ends normally.
Arguments
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
value | IModel | Model to delete |
Return value
- void
Exceptions
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 |
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 |