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
Name | Type | Description |
---|---|---|
fieldName | string | Field name You cannot specify null or an empty string. |
opposite | IModel | Model to disassociate Cannot be null. |
Return value
- void
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite 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 - Owned field |