FindVocabularyAnnotations(T) Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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 IEdmAnnotatable, _
term As IEdmTerm _
) As IEnumerable(Of T)
'Usage
Dim model As IEdmModel
Dim element As IEdmAnnotatable
Dim term As IEdmTerm
Dim returnValue As IEnumerable(Of T)
returnValue = model.FindVocabularyAnnotations(element, _
term)
public static IEnumerable<T> FindVocabularyAnnotations<T>(
this IEdmModel model,
IEdmAnnotatable element,
IEdmTerm term
)
where T : IEdmVocabularyAnnotation
[ExtensionAttribute]
public:
generic<typename T>
where T : IEdmVocabularyAnnotation
static IEnumerable<T>^ FindVocabularyAnnotations(
IEdmModel^ model,
IEdmAnnotatable^ element,
IEdmTerm^ term
)
static member FindVocabularyAnnotations :
model:IEdmModel *
element:IEdmAnnotatable *
term:IEdmTerm -> IEnumerable<'T> when 'T : IEdmVocabularyAnnotation
JScript does not support generic types and methods.
Type Parameters
- T
Type of the annotation being returned.
Parameters
- model
Type: Microsoft.Data.Edm..::..IEdmModel
Model to search.
- element
Type: Microsoft.Data.Edm..::..IEdmAnnotatable
Element to check for annotations.
- term
Type: Microsoft.Data.Edm..::..IEdmTerm
Term to search for.
Return Value
Type: System.Collections.Generic..::..IEnumerable< (Of < ( <'T> ) > ) >
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).