ModelStore.Element.GetAnnotations Method (ModelStore.Identifier, Type)

Returns all attached annotations that implement the given type and have the identifier as their name.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Function GetAnnotations ( _
    identifier As ModelStore..::..Identifier, _
    annotationType As Type _
) As IList(Of IModelAnnotation)
'Usage
Dim instance As ModelStore..::..Element
Dim identifier As ModelStore..::..Identifier
Dim annotationType As Type
Dim returnValue As IList(Of IModelAnnotation)

returnValue = instance.GetAnnotations(identifier, _
    annotationType)
public IList<IModelAnnotation> GetAnnotations(
    ModelStore..::..Identifier identifier,
    Type annotationType
)
public:
virtual IList<IModelAnnotation^>^ GetAnnotations(
    ModelStore..::..Identifier^ identifier, 
    Type^ annotationType
) sealed
public final function GetAnnotations(
    identifier : ModelStore..::..Identifier, 
    annotationType : Type
) : IList<IModelAnnotation>
abstract GetAnnotations : 
        identifier:ModelStore..::..Identifier * 
        annotationType:Type -> IList<IModelAnnotation> 
override GetAnnotations : 
        identifier:ModelStore..::..Identifier * 
        annotationType:Type -> IList<IModelAnnotation> 

Parameters

Return Value

Type: System.Collections.Generic.IList<IModelAnnotation>

Implements

IModelAnnotationHolder.GetAnnotations(ModelStore.Identifier, Type)

.NET Framework Security

See Also

Reference

ModelStore.Element Class

ModelStore.Element Members

GetAnnotations Overload

Microsoft.Data.Schema.SchemaModel Namespace