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
Name | Type | Description |
---|---|---|
field | string | Field name You cannot specify null or an empty string. |
tag | string | Model tag name If null or an empty string is specified, the return value of this method will be an empty collection. |
value | string | The 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
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null or an empty string is specified for fieldName |
Field not found | ExtensionFieldNotFoundException | If the specified field is not found in this instance's metaclass |