IModel.GetRelationAt Method
Namespace: NextDesign.Core
Description
Retrieves the association of the specified field at the specified position.
This method evaluates IContextOption.PlModelAccessMode.
Argument
| Name | Type | Description |
|---|---|---|
| fieldName | string | Field name Cannot be null or an empty string. |
| index | int | Position Specifies the index, with the starting position being 0. |
Return value
Exceptions
| Name | Exception Class | Description |
|---|---|---|
| Invalid Argument | ExtensionArgumentException | When fieldName is null or an empty string |
| Field Not Found | ExtensionFieldNotFoundException | When the specified field is not found in this instance's metaclass |
| Illegal Field Access | ExtensionIllegalFieldAccessException | When this method is executed on a field with a multiplicity limit of 1 |
| Invalid Index Range | ExtensionOutOfRangeException | When a negative number is specified for index or when a value greater than or equal to the number of elements in the field is specified for index |