A Sandcastle Documented Class Library

# 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 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    bool UpdateRelationship(
    	Guid relationshipId,
    	string name,
    	string description,
    	Guid structureId,
    	Guid referencedStructureId,
    	IEnumerable<RelationshipKey> keys
    )

    Function UpdateRelationship (
    	relationshipId As Guid,
    	name As String,
    	description As String,
    	structureId As Guid,
    	referencedStructureId As Guid,
    	keys As IEnumerable(Of RelationshipKey)
    ) As Boolean

    bool UpdateRelationship(
    	Guid relationshipId,
    	String^ name,
    	String^ description,
    	Guid structureId,
    	Guid referencedStructureId,
    	IEnumerable<RelationshipKey>^ keys
    )

    abstract UpdateRelationship :
            relationshipId : Guid *
            name : string *
            description : string *
            structureId : Guid *
            referencedStructureId : Guid *
            keys : IEnumerable<RelationshipKey> -> bool

#### 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
if the operation was successful; otherwise,
.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | keys is .
ArgumentException | structureId or referencedStructureId is Empty or keys is empty.
NotFoundException | structureId does not exist.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

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