Open this page in the API Guide

IRelationshipService.UpdateRelationship Method (Guid, String, String, Guid, Guid, IEnumerable<RelationshipKey>)

Updates the relationship definition, irrespective of the check in status of the primary structure.

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 UpdateRelationship(
	Guid relationshipId,
	string name,
	string description,
	Guid structureId,
	Guid referencedStructureId,
	IEnumerable<RelationshipKey> keys
)

Parameters

relationshipId
Type: System.Guid
The relationship ID.
name
Type: System.String
The name.
description
Type: System.String
The description.
structureId
Type: System.Guid
The primary structure ID.
referencedStructureId
Type: System.Guid
The referenced structure ID.
keys
Type: System.Collections.Generic.IEnumerable<RelationshipKey>
The relationship keys.

Return Value

Type: Boolean
true if the operation was successful; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionkeys is null.
ArgumentExceptionstructureId or referencedStructureId is Empty or keys is empty.
NotFoundExceptionstructureId does not exist.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also