ModelElement.GetAnnotations 方法

包括受保护的成员
包括继承的成员

获取已添加到元素的批注的列表。

重载此成员。有关此成员的完整信息(包括语法、用法和示例),请单击重载列表中的相应名称。

重载列表

  名称 说明
公共方法 GetAnnotations<TType>() 获取附加到当前元素的所提供类型的批注的列表。
公共方法 GetAnnotations() 获取已添加到此元素的批注的列表。
公共方法 GetAnnotations(Type) 获取已添加到此元素的指定类型批注的列表。
公共方法 GetAnnotations(ModelIdentifier) 获取已添加到指定元素(当前元素的子元素)的批注的列表。
公共方法 GetAnnotations<TType>(ModelIdentifier) 获取附加到指定元素且其类型与所提供的 Type 匹配的批注的列表。
公共方法 GetAnnotations(ModelIdentifier, Type) 获取一个列表,其中包含已添加到当前元素指定子元素中的指定类型的批注。

页首

请参见

参考

ModelElement 类

Microsoft.Data.Schema.SchemaModel 命名空间