Share via


IModelAnnotationHolder Interface

Represents a class that can have attached annotations.

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

Syntax

'Declaration
Public Interface IModelAnnotationHolder
public interface IModelAnnotationHolder
public interface class IModelAnnotationHolder
type IModelAnnotationHolder =  interface end
public interface IModelAnnotationHolder

The IModelAnnotationHolder type exposes the following members.

Methods

  Name Description
Public method AddAnnotation Adds the given annotation to this element.
Public method GetAnnotations() Returns a list of annotations attached to this element.
Public method GetAnnotations(Type) Returns a list of attached annotations of the given type.
Public method GetAnnotations(ModelIdentifier) Returns a list of attached annotations that have the given identifier.
Public method GetAnnotations(ModelIdentifier, Type)
Public method GetAnnotations<TType>() Returns all attached model annotations that implement the given annotation type and have the specified model identifier.
Public method GetAnnotations<TType>(ModelIdentifier)
Public method RemoveAnnotation Removes the specified annotation from this model element.

Top

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace