Skip to main content

IModel.GetRelationAt method

Namespace: NextDesign.Core

Description

Gets the association at the specified position for the specified field.
This method evaluates IContextOption.PlModelAccessMode.

argument

NameTypeDescription
fieldNamestringField name
You cannot specify null or an empty string.
indexintPosition
Specifies the index starting at 0.

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in this instance's metaclass
Illegal field accessExtensionIllegalFieldAccessExceptionIf this method is executed for a field with a maximum multiplicity of 1
Invalid index rangeExtensionOutOfRangeExceptionWhen a negative number is specified for index
or when a value greater than the number of elements in the corresponding field is specified for index