Open this page in the API Guide

IRelationshipService.DeleteRelationship Method (Guid, Guid, Guid)

Deletes the specified relationship between the specified primary structure ID and the specified referenced structure ID, irrespective of the checked out status.

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 DeleteRelationship(
	Guid structureId,
	Guid referencedStructureId,
	Guid relationshipId
)

Parameters

structureId
Type: System.Guid
The structure ID.
referencedStructureId
Type: System.Guid
The referenced structure ID.
relationshipId
Type: System.Guid
The relationship ID.

Return Value

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