Skip to main content

IModel.GetFieldValues Method

Namespace: NextDesign.Core

Description​

Gets the value collection of the specified field.
This method evaluates IContextOption.PlModelAccessMode.
When accessing the model in the product-applied state according to the context option settings, field values based on reference relationships (including derivation relationships) disabled by the product line (PL) are not included.
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