다음을 통해 공유


UmlExtensions Class

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

Inheritance Hierarchy

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

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

Syntax

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

The UmlExtensions type exposes the following members.

Methods

  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.

Top

Remarks

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

Reference

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml Namespace