Click or drag to resize
ObjectRelationshipInfoProvider.RelationshipExists Method
Returns true if the relationship exists.

Namespace: CMS.Relationships
Assembly: CMS.Relationships (in CMS.Relationships.dll) Version: 9.0.0
Syntax
C#
public static bool RelationshipExists(
	int leftObjectId,
	string leftObjectType,
	int rightObjectId,
	string rightObjectType,
	int relationshipNameId
)

Parameters

leftObjectId
Type: System.Int32
Relationship left object ID
leftObjectType
Type: System.String
Relationship left object type
rightObjectId
Type: System.Int32
Relationship right object ID
rightObjectType
Type: System.String
Relationship right object type
relationshipNameId
Type: System.Int32
Relationship name ID

Return Value

Type: Boolean
See Also