Skip to main content

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

NameTypeDescription
fieldNamestringField name
You cannot specify null or an empty string.
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 this instance's metaclass
Illegal operationExtensionInvalidOperationExceptionIf an inoperable field is specified in the field name
- Feature assignment field of product line
- Field with System.Core tag