Click or drag to resize
RelationshipsExtensionsGetObjectRelationships Method
Gets the query for all relationships of the objects that the query represents

Namespace: CMS.Relationships
Assembly: CMS.Relationships (in CMS.Relationships.dll) Version: 9.0.0
Syntax
C#
public static ObjectQuery<ObjectRelationshipInfo> GetObjectRelationships(
	this IObjectQuery query,
	int relationshipNameId = 0,
	bool left = true,
	bool right = true
)

Parameters

query
Type: CMS.DataEngineIObjectQuery
Base query
relationshipNameId (Optional)
Type: SystemInt32
Relationship name ID
left (Optional)
Type: SystemBoolean
Object on the left side of the relationship
right (Optional)
Type: SystemBoolean
Object on the right side of the relationship

Return Value

Type: ObjectQueryObjectRelationshipInfo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObjectQuery. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also