Skip to main content

IModel.GetRelationsByTag Method

Namespace: NextDesign.Core

Description

Gets the relations with the specified tag for the specified field.
This method evaluates IContextOption.PlModelAccessMode.

If there are no relevant relations, it returns an empty collection.

Arguments

NameTypeDescription
fieldNamestringField name
Null or an empty string cannot be specified.
tagstringModel tag name
If null or an empty string is specified, the return value of this method is an empty collection.
valuestringString representation of tag value
The default value is null.
If null or an empty string is specified, it will be evaluated only based on whether the model has a tag.

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 the metaclass of this instance