Share via


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

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

  • 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 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