IModelElement Interface

Provides a basis for each element in a schema model.

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

public interface IModelElement : IModelPropertyContainer, 
	IModelEntity, IModelAnnotationHolder

The IModelElement type exposes the following members.

  NameDescription
Public propertyElementClassGets the metadata class for an element.
Public propertyModelGets the model reference. (Inherited from IModelEntity.)
Public propertyNameGets or sets the name of the element.
Public propertyResolutionStatusGets or sets the value of the model element resolution status.
Public propertySourceCodePositionsGets the list of sources that define this element.
Public propertyValidationStatusGets or sets the value of the model element validation status.
Top

  NameDescription
Public methodAddAnnotationAdds the given annotation to this element. (Inherited from IModelAnnotationHolder.)
Public methodDeleteDeletes this instance from the model.
Public methodGetAnnotations()Returns a list of annotations attached to this element. (Inherited from IModelAnnotationHolder.)
Public methodGetAnnotations(Type)Returns a list of attached annotations of the given type. (Inherited from IModelAnnotationHolder.)
Public methodGetAnnotations(ModelIdentifier)Returns a list of attached annotations that have the given identifier. (Inherited from IModelAnnotationHolder.)
Public methodGetAnnotations(ModelIdentifier, Type) (Inherited from IModelAnnotationHolder.)
Public methodGetAnnotations<TType>()Returns all attached model annotations that implement the given annotation type and have the specified model identifier. (Inherited from IModelAnnotationHolder.)
Public methodGetAnnotations<TType>(ModelIdentifier) (Inherited from IModelAnnotationHolder.)
Public methodGetComposingChildrenReturns a list of composing children for this element.
Public methodGetHierarchicalChildrenReturns a list of hierarchical children for this element.
Public methodGetOwnerInfoReturns information about the element owner.
Public methodGetProperty<TProperty>Gets the specified property. (Inherited from IModelPropertyContainer.)
Public methodGetReferencedDanglingRelationshipEntriesReturns a list of the relationship entries, where this element is on the left side and there is either no element on the right side of the relationship, or the element on the right does not exist in the model.
Public methodGetReferencedElementsReturns a list of the elements that are in a relationship with this element, where this element is on the left side of the relationship.
Public methodGetReferencedRelationshipEntriesReturns a list of the relationship entries, where this element is on the left side.
Public methodGetReferencingElementsReturns a list of the elements that are in a relationship with this element, where this element is on the right side.
Public methodGetReferencingRelationshipEntriesReturns a list of the relationship entries, where this element is on the right side.
Public methodGetRelationship(ModelRelationshipClass)Returns the requested relationship by using the provided metadata.
Public methodGetRelationship<TFrom, TTo>(ModelRelationshipClass)Returns a relationship where the two related elements are of the specified types.
Public methodGetRelationshipsReturns a list of the relationships in this element.
Public methodIsDeletedSpecifies whether the object is deleted.
Public methodIsExternalReturns a value that indicates whether the object was loaded from an external source and is not a part of the schema model.
Public methodRemoveAnnotationRemoves the specified annotation from this model element. (Inherited from IModelAnnotationHolder.)
Public methodSetProperty<TProperty>Sets the specified property. (Inherited from IModelPropertyContainer.)
Top

Community Additions

ADD
Show: