Merging Topics

Top  Previous  Next

The TopicMap class provides a method to merge two topics (TopicMap.MergeTopics(Uri, Uri)). The topics to be merged must be identified by their web address (the value of the WebAddress property of the Topic or TopicReference class), and the topics to be merged must not be locally modified or new topics that have not yet been saved to the server. The merge operation is always performed immediately on the server and may affect other topics or associations if they contain references to the merged topic. It is therefore best practice to ensure that you save all other changes to the topic map before calling the TopicMap.MergeTopics() method and also that you do not reuse any Topic or Association objects after calling a merge without using the TopicMap.GetTopic() or TopicMap.GetAssociation() methods to retrieve updated representations from the server.