Skip to main content

IModel.UnRelate method

Namespace: NextDesign.Core

Description

Removes the reference association from the model given by the specified field of this instance.
If there are multiple associations in the relevant field, cancel all associations.
If there is no association with the given model, nothing is done and it exits normally.

argument

NameTypeDescription
fieldNamestringField name
You cannot specify null or an empty string.
oppositeIModelModel to disassociate
Cannot be null.

Return value

  • void

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for opposite
If 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
- Owned field