IModel.GetRelationAt Method
Namespace: NextDesign.Core
Description
Gets the relation at the specified position of the specified field.
This method evaluates IContextOption.PlModelAccessMode.
Arguments
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field name Null or an empty string cannot be specified. |
| index | int | Position Specify an index with the first position being 0. |
Return value
Exception
| Name | Exception class | Description |
|---|---|---|
| Invalid argument | ExtensionArgumentException | If 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 |
| Illegal field access | ExtensionIllegalFieldAccessException | If this method is executed for a field whose multiplicity limit is 1 |
| Invalid index range | ExtensionOutOfRangeException | If a negative number is specified for index or if a value greater than or equal to the number of elements in the corresponding field is specified for index |