PFItemGetRelatedItems Method (ContentRelation, PFQuery, PFContentType, PFItemRelationDirection, Boolean) |
Gets items linked inside a relation.
Namespace:
Packflow.Core
Assembly:
MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax public List<PFItem> GetRelatedItems(
ContentRelation relation,
PFQuery query = null,
PFContentType targetContentType = null,
PFItemRelationDirection direction = PFItemRelationDirection.Both,
bool maximumOne = false
)
Parameters
- relation
- Type: Packflow.ModelingContentRelation
Relation in the model. - query (Optional)
- Type: Packflow.CorePFQuery
Query to filter, order or select columns of the results. - targetContentType (Optional)
- Type: Packflow.CorePFContentType
If the target content-type has already been loaded,
avoid a second load with this parameter. - direction (Optional)
- Type: Packflow.CorePFItemRelationDirection
Get items linked from this item, to this item, or both. - maximumOne (Optional)
- Type: SystemBoolean
Return only first result.
Return Value
Type:
ListPFItemRelated items (according to parameters).
See Also