Skip to main content

IModel.GetRelationAt Method

Namespace: NextDesign.Core

Description

Retrieves the association of the specified field at the specified position.
This method evaluates IContextOption.PlModelAccessMode.

Argument

NameTypeDescription
fieldNamestringField name
Cannot be null or an empty string.
indexintPosition
Specifies the index, with the starting position being 0.

Return value

Exceptions

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen fieldName is null or an empty string
Field Not FoundExtensionFieldNotFoundExceptionWhen the specified field is not found in this instance's metaclass
Illegal Field AccessExtensionIllegalFieldAccessExceptionWhen this method is executed on a field with a multiplicity limit of 1
Invalid Index RangeExtensionOutOfRangeExceptionWhen 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