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
Name | Type | Description |
---|---|---|
fieldName | string | Field name Null or an empty string cannot be specified. |
tag | string | Model tag name If null or an empty string is specified, the return value of this method is an empty collection. |
value | string | String 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
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 the metaclass of this instance |