IElement 的扩展方法是所有 UML 模型元素类型的超类。
继承层次结构
System.Object
  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml.UmlExtensions
命名空间:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml
程序集:  Microsoft.VisualStudio.ArchitectureTools.Extensibility(在 Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll 中)
语法
声明
<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
UmlExtensions 类型公开以下成员。
方法
| 名称 | 说明 | |
|---|---|---|
| .gif) .gif) | AddReference | 将字符串链接到元素,通常在此元素中该字符串为引用(如 URI、modelbus 引用或工作项 ID)。用名称指示引用的类型。返回表示链接的 IReference 对象。 | 
| .gif) .gif) | Delete | 删除此元素和其所有的关系、拥有的元素以及形状。 | 
| .gif) .gif) | DeleteAllReference | 移除给定标记的所有引用。 | 
| .gif) .gif) | GetId | 获取一个 GUID,该 GUID 可以标识这个元素。 | 
| .gif) .gif) | GetModelStore(Store) | 封装 IModelStore 中实现存储。 | 
| .gif) .gif) | GetModelStore(IElement) | 获取包含该元素的 IModelStore 属性。 | 
| .gif) .gif) | GetReferences | 获取与该元素相关联的一个给定的标记的 IReferences。 | 
| .gif) .gif) | GetRelatedElements<T> | 按照指定的类型的关系,获取此元素相关的元素。 | 
| .gif) .gif) | GetRelatedLinks<T> | 获取从或到该元素的指定类型的关系。 | 
页首
备注
有关 UML 关系图的更多信息,请参见 开发软件设计模型。
有关使用 UML API 的更多信息,请参见 扩展 UML 模型和关系图。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
请参见
参考
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml 命名空间