Skip to main content

IModel.GetRelationsByTag method

Namespace: NextDesign.Core

Description

Gets associations with the specified tag on the specified field.
This method evaluates IContextOption.PlModelAccessMode.

Returns an empty collection if no such association exists.

argument

NameTypeDescription
fieldstringField name
You cannot specify null or an empty string.
tagstringModel tag name
If null or an empty string is specified, the return value of this method will be an empty collection.
valuestringThe 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 tags for the model is evaluated.

Return value

  • IRelationshipCollection

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null or an empty string is specified for fieldName
Field not foundExtensionFieldNotFoundExceptionIf the specified field is not found in this instance's metaclass