Skip to main content

IModel.GetFieldValues method

Namespace: NextDesign.Core

Description

Gets a collection of values for the specified field. This method evaluates IContextOption.PlModelAccessMode.

If the corresponding field value does not exist, it returns an empty collection. Note that the data type of the field specified by this method must be a class type.

argument

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.

Return value

  • IModelCollection

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in the metaclass of this instance
Invalid data typeExtensionInvalidTypeExceptionIf the data type of the specified field is not a class type