获取从特定模型来看的可批注元素的词汇批注。
命名空间: Microsoft.Data.Edm
程序集: Microsoft.Data.Edm(在 Microsoft.Data.Edm.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Function VocabularyAnnotations ( _
element As IEdmVocabularyAnnotatable, _
model As IEdmModel _
) As IEnumerable(Of IEdmVocabularyAnnotation)
用法
Dim element As IEdmVocabularyAnnotatable
Dim model As IEdmModel
Dim returnValue As IEnumerable(Of IEdmVocabularyAnnotation)
returnValue = element.VocabularyAnnotations(model)
public static IEnumerable<IEdmVocabularyAnnotation> VocabularyAnnotations(
this IEdmVocabularyAnnotatable element,
IEdmModel model
)
[ExtensionAttribute]
public:
static IEnumerable<IEdmVocabularyAnnotation^>^ VocabularyAnnotations(
IEdmVocabularyAnnotatable^ element,
IEdmModel^ model
)
static member VocabularyAnnotations :
element:IEdmVocabularyAnnotatable *
model:IEdmModel -> IEnumerable<IEdmVocabularyAnnotation>
public static function VocabularyAnnotations(
element : IEdmVocabularyAnnotatable,
model : IEdmModel
) : IEnumerable<IEdmVocabularyAnnotation>
参数
- element
类型:Microsoft.Data.Edm.IEdmVocabularyAnnotatable
对调用对象的引用。
- model
类型:Microsoft.Data.Edm.IEdmModel
要检查批注的模型。
返回值
类型:System.Collections.Generic.IEnumerable<IEdmVocabularyAnnotation>
通过该模型或该模型所引用的模型附加到元素的批注。
用法说明
在 Visual Basic 和 C# 中,您可以对 IEdmVocabularyAnnotatable 类型的任何对象将此方法作为实例方法调用。在您使用实例方法语法调用此方法时,将忽略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.103)或https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.103)。