Skip to main content

IModel.Count method

Namespace: NextDesign.Core

Description

Gets the number of values in the specified field.

This method does not evaluate IContextOption.PlModelAccessMode.

argument

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

Return value

  • int

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