ExtensionMethods.FindVocabularyAnnotations<T> Method (IEdmModel, IEdmVocabularyAnnotatable, String)

Gets an annotatable element's vocabulary annotations that bind a particular term.

Namespace:  Microsoft.Data.Edm
Assembly:  Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function FindVocabularyAnnotations(Of T As IEdmVocabularyAnnotation) ( _
    model As IEdmModel, _
    element As IEdmVocabularyAnnotatable, _
    termName As String _
) As IEnumerable(Of T)
'Usage
Dim model As IEdmModel 
Dim element As IEdmVocabularyAnnotatable 
Dim termName As String 
Dim returnValue As IEnumerable(Of T)

returnValue = model.FindVocabularyAnnotations(element, _
    termName)
public static IEnumerable<T> FindVocabularyAnnotations<T>(
    this IEdmModel model,
    IEdmVocabularyAnnotatable element,
    string termName
)
where T : IEdmVocabularyAnnotation
[ExtensionAttribute]
public:
generic<typename T>
where T : IEdmVocabularyAnnotation 
static IEnumerable<T>^ FindVocabularyAnnotations(
    IEdmModel^ model, 
    IEdmVocabularyAnnotatable^ element, 
    String^ termName
)
static member FindVocabularyAnnotations : 
        model:IEdmModel * 
        element:IEdmVocabularyAnnotatable * 
        termName:string -> IEnumerable<'T>  when 'T : IEdmVocabularyAnnotation
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of the annotation being returned.

Parameters

  • termName
    Type: System.String
    The name of the term to search for.

Return Value

Type: System.Collections.Generic.IEnumerable<T>
The annotations attached to the element by this model or by models referenced by this model that bind the term.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

ExtensionMethods Class

FindVocabularyAnnotations Overload

Microsoft.Data.Edm Namespace