Open this page in the API Guide

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 (25.1.0.1000)
Syntax
bool UpdateRelationships(
	IStructure dataStructure,
	IEnumerable<Relationship> relationships
)

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
true if the operation was successful; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptiondataStructure or relationships is null.
ArgumentExceptionrelationships is empty or contains relationships not defined for the specified dataStructure or dataStructure has never been saved.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also