Open this page in the API Guide

IRelationshipService.DeleteRelationships Method (IStructure, IStructure, RelationshipCategory)

Deletes the relationships between the primary data structure and the specified referenced structure, using the specified category and 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 DeleteRelationships(
	IStructure dataStructure,
	IStructure referencedStructure,
	RelationshipCategory category
)

Parameters

dataStructure
Type: Dundas.BI.Data.Metadata.IStructure
The data structure.
referencedStructure
Type: Dundas.BI.Data.Metadata.IStructure
The referenced structure.
category
Type: Dundas.BI.Data.Relationships.RelationshipCategory
The relationship category.

Return Value

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