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 (25.3.0.1000)
Syntaxpublic RelationshipKey AddRelationshipKey(
	string elementName,
	string referencedElementName
)
Public Function AddRelationshipKey ( 
	elementName As String,
	referencedElementName As String
) As RelationshipKey
public:
RelationshipKey AddRelationshipKey(
	String^ elementName, 
	String^ referencedElementName
)
member AddRelationshipKey : 
        elementName : string * 
        referencedElementName : string -> RelationshipKey 
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: 
RelationshipKeyThe relationship key.
Exceptions
See Also