Skip to main content

IModel.GetFieldValues method

Namespace: NextDesign.Core

Description

Gets the value collection for the specified field.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such field value exists.
Note that the data type of the field specified by this method must be a class type.

argument

NameTypeDescription
fieldNamestringField name
You cannot specify null or an empty string.

Return value

  • IModelCollection

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
Invalid data typeExtensionInvalidTypeExceptionIf the data type of the specified field is not a class type