Click or drag to resize
MultiDocumentQueryBaseTQuery, TInnerQuery, TObjectInRelationWith Method
Ensures that only documents in relationship with a specified document are retrieved.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.2.23
Syntax
C#
public TQuery InRelationWith(
	Guid nodeGuid,
	string relationshipName = null,
	RelationshipSideEnum side = RelationshipSideEnum.Both
)

Parameters

nodeGuid
Type: SystemGuid
Node GUID of the related document
relationshipName (Optional)
Type: SystemString
Name of the relationship. If not provided documents from all relationships will be retrieved.
side (Optional)
Type: CMS.DocumentEngineRelationshipSideEnum
Side of the related document within the relation

Return Value

Type: TQuery

Implements

IDocumentQueryTQuery, TObjectInRelationWith(Guid, String, RelationshipSideEnum)
See Also