Skip to main content

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

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

Return value

  • void

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance
Illegal operationExtensionInvalidOperationExceptionWhen an inoperable field is specified in the field name
-Product line feature assignment field
-Field with System.Core tag