Open this page in the API Guide

IRelationshipService.GetRelationships Method (Guid, Boolean)

Gets all the relationships where the specified structure is either the primary structure or the referenced one.

Namespace:  Dundas.BI.Data.Relationships
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
IReadOnlyCollection<Relationship> GetRelationships(
	Guid structureId,
	bool recursive
)

Parameters

structureId
Type: System.Guid
The structure ID.
recursive
Type: System.Boolean
If set to true, also include the relationships for all referenced structures.

Return Value

Type: IReadOnlyCollection<Relationship>
The list of relationships.
Exceptions
ExceptionCondition
ArgumentExceptionstructureId is Empty.
NotFoundExceptionThe structure does not exist.
NoPrivilegeExceptionThe caller does not have permission to access the structure.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also