ObjectRelationshipInfoProviderGetRelationships Method (Int32, String, Int32, Boolean, Boolean, String) |
Gets all the relationships for the specified object.
Left and right parameters determine whether the object can be on left or right side of the relationship.
Namespace: CMS.RelationshipsAssembly: CMS.Relationships (in CMS.Relationships.dll) Version: 9.0.0
Syntaxpublic static ObjectQuery<ObjectRelationshipInfo> GetRelationships(
int objectId,
string objectType,
int relationshipNameId = 0,
bool left = true,
bool right = true,
string relatedObjectType = null
)
Parameters
- objectId
- Type: SystemInt32
Object ID - objectType
- Type: SystemString
Object type - relationshipNameId (Optional)
- Type: SystemInt32
RelationshipName 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 - relatedObjectType (Optional)
- Type: SystemString
Type of the related object
Return Value
Type:
ObjectQueryObjectRelationshipInfo
See Also