IModel.GetFieldValuesByFieldTag method
Namespace: NextDesign.Core
Description
Gets an enumeration of values for the field tagged with the specified tag.
If there are multiple fields with the corresponding tag, the combined enumeration of the values of all the fields is returned.
This method does not evaluate IContextOption.PlModelAccessMode. Note that elements that are invalid in the product are also returned.
Returns an empty collection if no such field value exists.
Note that the data type of the field that is tagged by this method is arbitrary. Therefore, the enumeration returned by this method is of type object.
When using it, it is necessary to convert it to the most suitable data type.
argument
Name | Type | Description |
---|---|---|
fieldTag | string | Field tag name If null or an empty string is specified, the return value of this method will be an empty collection. |
value | string | String representation of the tag value The default value is null. If null or an empty string is specified, only the presence or absence of a tag for the field will be evaluated. |
Return value
- IEnumerable<object>