IModel.RemoveField method
Namespace: NextDesign.Core
Description
Removes the value of the specified field for this instance.
Deletes the specified model if the specified field is the owning field.
If the specified field is a reference field, remove only the reference relationship and the model is preserved.
In addition, if the model specified for deletion is not included in the specified field, nothing will be done and it will end normally.
argument
Name | Type | Description |
---|---|---|
fieldName | string | Field name You cannot specify null or an empty string. |
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 this instance's metaclass |
Illegal operation | ExtensionInvalidOperationException | If an inoperable field is specified in the field name - Feature assignment field of product line - Field with System.Core tag |