IModel.RemoveField method
Namespace: NextDesign.Core
Description
Deletes the value of the specified field for this instance. If the specified field is a owned field, delete the specified model. If the specified field is a reference field, only reference associations are removed and the model is preserved.
If the model specified as the deletion target is not included in the specified field, nothing is done and the process ends normally.
argument
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
value | IModel | Model to delete |
Return value
- void
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null or empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in the metaclass of this instance |
Illegal operation | ExtensionInvalidOperationException | When an inoperable field is specified in the field name -Product line feature assignment field -Field with System.Core tag |