Open this page in the API Guide

Relationship.AddRelationshipKey Method (String, String)

Adds a new relationship key to the current instance. The operation is allowed only if the relationship category is not Native. The category is subsequently changed automatically UserDefined.

Namespace:  Dundas.BI.Data.Relationships
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
public RelationshipKey AddRelationshipKey(
	string elementName,
	string referencedElementName
)

Parameters

elementName
Type: System.String
The element name from the relationship primary structure.
referencedElementName
Type: System.String
The referenced element name from the relationship referenced structure.

Return Value

Type: RelationshipKey
The relationship key.
Exceptions
ExceptionCondition
ArgumentExceptionelementName or referencedElementName is Empty or null.
InvalidOperationExceptionThe operation is not allowed for native relationships.
See Also