IModel.GetRelation method
Namespace: NextDesign.Core
Description
Gets the association for the specified field. This method evaluates IContextOption.PlModelAccessMode.
Returns null if the specified field has no valid association. If the specified field has a multiplicity of 2 or more, the relation to the first element of the corresponding field is acquired.
argument
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field name Null or an empty string cannot be specified. |
Return value
Exception
| Name | Exception Class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | When null or an empty string is specified for fieldName |
| Field not found | ExtensionFieldNotFoundException | If the specified field is not found in the metaclass of this instance |