A Sandcastle Documented Class Library

# IRelationshipService GetRelationships Method (Guid, Int64)

Gets all the relationships where the specified structure is either the primary structure or the referenced one. For primary structure relationships retrieved according to the provided revision.

Namespace: Dundas.BI.Data.Relationships
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    IReadOnlyCollection<Relationship> GetRelationships(
    	Guid structureId,
    	long revision
    )

    Function GetRelationships (
    	structureId As Guid,
    	revision As Long
    ) As IReadOnlyCollection(Of Relationship)

    IReadOnlyCollection<Relationship^>^ GetRelationships(
    	Guid structureId,
    	long long revision
    )

    abstract GetRelationships :
            structureId : Guid *
            revision : int64 -> IReadOnlyCollection<Relationship>

#### Parameters

structureId
  Type: System
  Guid
  The structure ID.
revision
  Type: System
  Int64
  The structure revision.

#### Return Value

Type: IReadOnlyCollection
Relationship
The list of relationships.
Exceptions

Exception | Condition
--- | ---
ArgumentException | structureId is Empty.
NotFoundException | The structure does not exist.
NoPrivilegeException | The caller does not have permission to access the structure.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IRelationshipService Interface
GetRelationships Overload
Dundas.BI.Data.Relationships Namespace