Click or drag to resize
ObjectRelationshipInfoProviderGetWhereCondition Method
Gets the relationship where condition.

Namespace: CMS.Relationships
Assembly: CMS.Relationships (in CMS.Relationships.dll) Version: 8.2.23
Syntax
C#
public static string GetWhereCondition(
	int objectId,
	string objectType,
	int relationshipNameId,
	bool left,
	bool right,
	string relatedObjectType = null
)

Parameters

objectId
Type: SystemInt32
Object ID
objectType
Type: SystemString
Object type
relationshipNameId
Type: SystemInt32
Relationship name ID
left
Type: SystemBoolean
Object on the left side of the relationship
right
Type: SystemBoolean
Object on the right side of the relationship
relatedObjectType (Optional)
Type: SystemString
Type of the related object

Return Value

Type: String
See Also