Click or drag to resize
IDocumentQueryTQuery, 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: 10.0.0
Syntax
C#
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
See Also