Skip to main content

IModel.GetFieldAt Method

Namespace: NextDesign.Core

Description

Retrieves the value of the specified field at the specified index position in this instance.

Argument

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

Return value

  • object

Exceptions

NameException ClassDescription
Invalid ArgumentExtensionArgumentExceptionWhen null or an empty string is specified for fieldName
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