IGeneralization 接口

特定分类器从中继承和扩大常规分类器的某些功能的两个分类器之间的关系。 取决于功能如何定义,指定的分类器的实例也可能被视为一般分类器的实例。

命名空间:  Microsoft.VisualStudio.Uml.Classes
程序集:  Microsoft.VisualStudio.Uml.Interfaces(在 Microsoft.VisualStudio.Uml.Interfaces.dll 中)

语法

声明
Public Interface IGeneralization _
    Inherits IDirectedRelationship, IRelationship, IElement
public interface IGeneralization : IDirectedRelationship, 
    IRelationship, IElement
public interface class IGeneralization : IDirectedRelationship, 
    IRelationship, IElement
type IGeneralization =  
    interface
        interface IDirectedRelationship
        interface IRelationship
        interface IElement
    end
public interface IGeneralization extends IDirectedRelationship, IRelationship, IElement

IGeneralization 类型公开以下成员。

属性

  名称 说明
公共属性 ApplicableStereotypes 可应用于此元素的构造型集合。 (继承自 IElement。)
公共属性 AppliedStereotypes 每个 IStereotypeInstance 表示构造型已被应用到此元素上。 (继承自 IElement。)
公共属性 Description 此元素的说明。 (继承自 IElement。)
公共属性 General 由特定分类器专门提供的分类器。
公共属性 IsSubstitutable 如果特定分类器的实例在需要一般分类器实例的任何地方都应是接受的,则为 true。
公共属性 OwnedComments 获取此元素(而非链接到它的注释)所包含的注解。 (继承自 IElement。)
公共属性 OwnedElements 获取此元素的各个元素。除了根 IModel 之外的每个元素都有一个所有者。 (继承自 IElement。)
公共属性 Owner 获取拥有此元素的“元素”。除了根 IModel 之外的每个元素都有一个所有者。 (继承自 IElement。)
公共属性 Source 关系的源元素。 (继承自 IDirectedRelationship。)
公共属性 SourceElement 这种关系的源元素。 (继承自 IRelationship。)
公共属性 Specific 通过将信息添加到的一般化的分类器中所定义的分类器。
公共属性 Target 关系的目标元素。 (继承自 IDirectedRelationship。)
公共属性 TargetElement 关系的目标元素。 (继承自 IRelationship。)
公共属性 VisibleAppliedStereotypes (继承自 IElement。)

页首

扩展方法

  名称 说明
公共扩展方法 AddReference 将字符串链接到元素,通常在此元素中该字符串为引用(如 URI、modelbus 引用或工作项 ID)。用名称指示引用的类型。返回表示链接的 IReference 对象。 (由 UmlExtensions 定义。)
公共扩展方法 ApplyStereotype 将构造型应用于元素。创建用构造类型表示模型元素的扩展的 IStereotypeInstance。 (由 ProfileStereotypeExtensions 定义。)
公共扩展方法 Delete 删除此元素和其所有的关系、拥有的元素以及形状。 (由 UmlExtensions 定义。)
公共扩展方法 DeleteAllReference 移除给定标记的所有引用。 (由 UmlExtensions 定义。)
公共扩展方法 GetId 获取一个 GUID,该 GUID 可以标识这个元素。 (由 UmlExtensions 定义。)
公共扩展方法 GetModelStore 获取包含该元素的 IModelStore 属性。 (由 UmlExtensions 定义。)
公共扩展方法 GetReferences 获取与该元素相关联的一个给定的标记的 IReferences。 (由 UmlExtensions 定义。)
公共扩展方法 GetRelatedElements<T> 按照指定的类型的关系,获取此元素相关的元素。 (由 UmlExtensions 定义。)
公共扩展方法 GetRelatedLinks<T> 获取从或到该元素的指定类型的关系。 (由 UmlExtensions 定义。)
公共扩展方法 Shapes 显示任何打开的关系图或指定的打开关系图上的模型元素的所有形状。 (由 PresentationHelpers 定义。)

页首

备注

提示

此类型上定义的方法为 extension methods(扩展方法)。 要使用方法,您必须将项目引用添加到 .NET assembly Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll,并且您的代码中必须包含指令 using Microsoft.VisualStudio.ArchitectureTools.Extensibility.Uml。

请参见

参考

Microsoft.VisualStudio.Uml.Classes 命名空间