RelationshipAddRelationshipKey(String, String) Method

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

Parameters

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

Return Value

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