Skip to main content

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

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.
valueIModelModel to delete

Return value

  • void

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance
Invalid operationExtensionInvalidOperationExceptionIf 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