RelationshipAddRelationshipKey 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 (24.4.0.1000)
Syntax
public RelationshipKey AddRelationshipKey(
	string elementName,
	string referencedElementName
)

Parameters

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

Return Value

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