ExtensionMethods.FindVocabularyAnnotations<T> Method (IEdmModel, IEdmVocabularyAnnotatable, IEdmTerm, 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, _
    term As IEdmTerm, _
    qualifier As String _
) As IEnumerable(Of T)
'Usage
Dim model As IEdmModel 
Dim element As IEdmVocabularyAnnotatable 
Dim term As IEdmTerm 
Dim qualifier As String 
Dim returnValue As IEnumerable(Of T)

returnValue = model.FindVocabularyAnnotations(element, _
    term, qualifier)
public static IEnumerable<T> FindVocabularyAnnotations<T>(
    this IEdmModel model,
    IEdmVocabularyAnnotatable element,
    IEdmTerm term,
    string qualifier
)
where T : IEdmVocabularyAnnotation
[ExtensionAttribute]
public:
generic<typename T>
where T : IEdmVocabularyAnnotation 
static IEnumerable<T>^ FindVocabularyAnnotations(
    IEdmModel^ model, 
    IEdmVocabularyAnnotatable^ element, 
    IEdmTerm^ term, 
    String^ qualifier
)
static member FindVocabularyAnnotations : 
        model:IEdmModel * 
        element:IEdmVocabularyAnnotatable * 
        term:IEdmTerm * 
        qualifier: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

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 with the given qualifier.

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