Bagikan melalui


ModelElement.GetAnnotations Method (ModelIdentifier, Type)

Gets a list of annotations of the specified type that have been added to the specified element that is a child of the current element.

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

Syntax

'Declaration
Public Function GetAnnotations ( _
    identifier As ModelIdentifier, _
    annotationType As Type _
) As IList(Of IModelAnnotation)
public IList<IModelAnnotation> GetAnnotations(
    ModelIdentifier identifier,
    Type annotationType
)
public:
virtual IList<IModelAnnotation^>^ GetAnnotations(
    ModelIdentifier^ identifier, 
    Type^ annotationType
) sealed
abstract GetAnnotations : 
        identifier:ModelIdentifier * 
        annotationType:Type -> IList<IModelAnnotation> 
override GetAnnotations : 
        identifier:ModelIdentifier * 
        annotationType:Type -> IList<IModelAnnotation> 
public final function GetAnnotations(
    identifier : ModelIdentifier, 
    annotationType : Type
) : IList<IModelAnnotation>

Parameters

Return Value

Type: System.Collections.Generic.IList<IModelAnnotation>
An IList<T> object of type IModelAnnotation, or a derived type.

Implements

IModelAnnotationHolder.GetAnnotations(ModelIdentifier, Type)

.NET Framework Security

See Also

Reference

ModelElement Class

GetAnnotations Overload

Microsoft.Data.Schema.SchemaModel Namespace

ModelIdentifier

IModelAnnotation

GetAnnotations