A Sandcastle Documented Class Library

# IRelationshipService UpdateRelationships Method

Updates the relationship definitions, and preserves all other stored definitions.

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

    bool UpdateRelationships(
    	IStructure dataStructure,
    	IEnumerable<Relationship> relationships
    )

    Function UpdateRelationships (
    	dataStructure As IStructure,
    	relationships As IEnumerable(Of Relationship)
    ) As Boolean

    bool UpdateRelationships(
    	IStructure^ dataStructure,
    	IEnumerable<Relationship^>^ relationships
    )

    abstract UpdateRelationships :
            dataStructure : IStructure *
            relationships : IEnumerable<Relationship> -> bool

#### Parameters

dataStructure
  Type: Dundas.BI.Data.Metadata
  IStructure
  The primary data structure.
relationships
  Type: System.Collections.Generic
  IEnumerable
  Relationship
  The relationship collection.

#### Return Value

Type: Boolean
if the operation was successful; otherwise,
.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | dataStructure or relationships is .
ArgumentException | relationships is empty or contains relationships not defined for the specified dataStructure or dataStructure has never been saved.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IRelationshipService Interface
Dundas.BI.Data.Relationships Namespace