IModelAnnotationHolder.GetAnnotations Method (ModelStore.Identifier, Type)

Returns a list of 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
Function GetAnnotations ( _
    identifier As ModelStore..::..Identifier, _
    annotationType As Type _
) As IList(Of IModelAnnotation)
'Usage
Dim instance As IModelAnnotationHolder
Dim identifier As ModelStore..::..Identifier
Dim annotationType As Type
Dim returnValue As IList(Of IModelAnnotation)

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

Parameters

  • annotationType
    Type: System.Type
    Specifies the annotation type

Return Value

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

.NET Framework Security

See Also

Reference

IModelAnnotationHolder Interface

IModelAnnotationHolder Members

GetAnnotations Overload

Microsoft.Data.Schema.SchemaModel Namespace