Freigeben über


ExtensionMethods.VocabularyAnnotations-Methode

Ruft die Vokabularanmerkungen eines anmerkungsfähigen Elements aus der Sicht eines bestimmten Modells ab.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function VocabularyAnnotations ( _
    element As IEdmVocabularyAnnotatable, _
    model As IEdmModel _
) As IEnumerable(Of IEdmVocabularyAnnotation)
'Usage
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>

Parameter

Rückgabewert

Typ: System.Collections.Generic.IEnumerable<IEdmVocabularyAnnotation>
Die Anmerkungen, die an das Element von dem Modell oder von Modellen, auf die von diesem Modell verwiesen wird, angefügt wurden.

Hinweis zur Verwendung

In Visual Basic und C# können Sie die Methode als Instanzenmethode für jedes Objekt vom Typ IEdmVocabularyAnnotatable aufrufen. Wenn Sie Instanzmethodensyntax zum Aufruf dieser Methode verwenden, vernachlässigen Sie den ersten Parameter. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.103) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.103).

Siehe auch

Verweis

ExtensionMethods Klasse

Microsoft.Data.Edm-Namespace