Open this page in the API Guide

IRelationshipService.DeleteRelationship Method (IStructure, IStructure, Guid)

Deletes the relationships between the specified primary structure and the specified referenced structure ID, using the current 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(
	IStructure dataStructure,
	IStructure referencedStructure,
	Guid relationshipId
)

Parameters

dataStructure
Type: Dundas.BI.Data.Metadata.IStructure
The data structure.
referencedStructure
Type: Dundas.BI.Data.Metadata.IStructure
The referenced data structure.
relationshipId
Type: System.Guid
The relationship ID.

Return Value

Type: Boolean
true if the operation was successful; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptiondataStructure or referencedStructure is null.
ArgumentExceptionrelationshipId is Empty.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also