Attach reference strings to UML model elements
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
You can write code to attach arbitrary strings to model elements. A string could be, for example, a URI, the cached result of a computation, or a ModelBus reference to an element in another model. Each string is contained in an IReference object. Any number of IReference objects can be attached to each model element.
Every IReference object has a Name. You could use this Name to indicate how the reference value should be interpreted. For example, you could set Name to "URI" to indicate that the Value should be interpreted as a URI. There are some predefined reference name values used by the modeling tools.
To use the following methods, you must add a reference to:
You should insert this directive in your code:
|Creates an |
Throws an exception if
|Returns all the |
|Deletes all the |
|Deletes this |
|The value used to name work item references.|