Compartir a través de


ModelElement.GetAnnotations (Método) (ModelIdentifier, Type)

Obtiene una lista de anotaciones del tipo especificado que se han agregado al elemento especificado que es secundario del elemento actual.

Espacio de nombres:  Microsoft.Data.Schema.SchemaModel
Ensamblado:  Microsoft.Data.Schema (en Microsoft.Data.Schema.dll)

Sintaxis

'Declaración
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>

Parámetros

Valor devuelto

Tipo: System.Collections.Generic.IList<IModelAnnotation>
Una interfaz IList<T> de tipo IModelAnnotation, o un tipo derivado.

Implementaciones

IModelAnnotationHolder.GetAnnotations(ModelIdentifier, Type)

Seguridad de .NET Framework

Vea también

Referencia

ModelElement Clase

GetAnnotations (Sobrecarga)

Microsoft.Data.Schema.SchemaModel (Espacio de nombres)

ModelIdentifier

IModelAnnotation

GetAnnotations