Skip to main content

IModel.GetFieldValues Method

Namespace: NextDesign.Core

Description

Gets the value collection of 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.

Arguments

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

Return value

  • IModelCollection

Exceptions

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf fieldName is null or an empty string is specified
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