UmlExtensions Class

 

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

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml.UmlExtensions

Syntax

public static class UmlExtensions
[ExtensionAttribute]
public ref class UmlExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type UmlExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class UmlExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static AddReference(IElement, String, String, Boolean)

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.

System_CAPS_pubmethodSystem_CAPS_static Delete(IElement)

Deletes this element and any relationships, owned elements, and shapes.

System_CAPS_pubmethodSystem_CAPS_static DeleteAllReference(IElement, String)

Remove all the references of a given tag.

System_CAPS_pubmethodSystem_CAPS_static GetId(IElement)

Gets a GUID that identifies this element.

System_CAPS_pubmethodSystem_CAPS_static GetModelStore(IElement)

Gets the IModelStore that contains this element.

System_CAPS_pubmethodSystem_CAPS_static GetModelStore(Store)

Wraps the implementation Store in an IModelStore.

System_CAPS_pubmethodSystem_CAPS_static GetReferences(IElement, String)

Get the IReferences of a given tag that are associated with this element.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedElements<T>(IElement)

Gets elements related to this element by relationships of the specified type.

System_CAPS_pubmethodSystem_CAPS_static GetRelatedLinks<T>(IElement)

Gets relationships of a specified type from or to this element.

Remarks

For more information about UML diagrams, see Create models for your app.

For more information about using the UML API, see Extend 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

Return to top