UmlExtensions Class

Extension methods for IElement, which is the superclass of all UML model element types.

Inheritance Hierarchy


Namespace:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
Assembly:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll)


<ExtensionAttribute> _
Public NotInheritable Class UmlExtensions
public static class UmlExtensions
public ref class UmlExtensions abstract sealed
type UmlExtensions =  class end
public final class UmlExtensions

The UmlExtensions type exposes the following members.


  Name Description
Public methodStatic member AddReference Links a string to an element, usually where the string is a reference such as a URI, modelbus reference, or work item ID. Use the name to indicate the type of reference. Returns an IReference object that represents the link.
Public methodStatic member Delete Deletes this element and any relationships, owned elements, and shapes.
Public methodStatic member DeleteAllReference Remove all the references of a given tag.
Public methodStatic member GetId Gets a GUID that identifies this element.
Public methodStatic member GetModelStore(Store) Wraps the implementation Store in an IModelStore.
Public methodStatic member GetModelStore(IElement) Gets the IModelStore that contains this element.
Public methodStatic member GetReferences Get the IReferences of a given tag that are associated with this element.
Public methodStatic member GetRelatedElements<T> Gets elements related to this element by relationships of the specified type.
Public methodStatic member GetRelatedLinks<T> Gets relationships of a specified type from or to this element.



For more information about UML diagrams, see Developing Models for Software Design.

For more information about using the UML API, see Extending UML Models and Diagrams.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also


Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace