IModelMultiRelationship Interface

Used to add multiple relationships.

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

Syntax

'Declaration
Public Interface IModelMultiRelationship _
    Inherits IModelRelationship, IModelEntity, IList(Of IModelElement),  _
    ICollection(Of IModelElement), IEnumerable(Of IModelElement), IEnumerable
public interface IModelMultiRelationship : IModelRelationship, 
    IModelEntity, IList<IModelElement>, ICollection<IModelElement>, 
    IEnumerable<IModelElement>, IEnumerable
public interface class IModelMultiRelationship : IModelRelationship, 
    IModelEntity, IList<IModelElement^>, ICollection<IModelElement^>, 
    IEnumerable<IModelElement^>, IEnumerable
type IModelMultiRelationship =  
    interface
        interface IModelRelationship
        interface IModelEntity
        interface IList<IModelElement>
        interface ICollection<IModelElement>
        interface IEnumerable<IModelElement>
        interface IEnumerable
    end
public interface IModelMultiRelationship extends IModelRelationship, IModelEntity, IList<IModelElement>, ICollection<IModelElement>, IEnumerable<IModelElement>, IEnumerable

The IModelMultiRelationship type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ICollection<T>. (Inherited from ICollection<IModelElement>.)
Public property FromElement Gets the relating element. (Inherited from IModelRelationship.)
Public property IsReadOnly Gets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<IModelElement>.)
Public property Item Gets or sets the element at the specified index. (Inherited from IList<IModelElement>.)
Public property Model Gets the model reference. (Inherited from IModelEntity.)
Public property RelationshipClass Gets the metadata class. (Inherited from IModelRelationship.)

Top

Methods

  Name Description
Public method Add Adds an item to the ICollection<T>. (Inherited from ICollection<IModelElement>.)
Public method AddElement Adds a relationship entry (based on an element) to the end of the relationship.
Public method AddRelationshipEntry Adds an empty relationship entry to the end of the relationship.
Public method Clear Removes all items from the ICollection<T>. (Inherited from ICollection<IModelElement>.)
Public method Contains Determines whether the ICollection<T> contains a specific value. (Inherited from ICollection<IModelElement>.)
Public method CopyTo Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. (Inherited from ICollection<IModelElement>.)
Public method GetEnumerator() Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<IModelElement>.)
Public method GetEnumerator() Returns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public method GetReferencedElements Returns the related elements. (Inherited from IModelRelationship.)
Public method GetReferencedRelationshipEntries Returns the related relationship entries. (Inherited from IModelRelationship.)
Public method GetRelationshipEntry Returns a relationship entry at the specified index.
Public method IndexOf(T) Determines the index of a specific item in the IList<T>. (Inherited from IList<IModelElement>.)
Public method IndexOf(IModelElement, Int32) Reports the index of the first occurrence of the relationship entry based on a specified element.
Public method Insert Inserts an item to the IList<T> at the specified index. (Inherited from IList<IModelElement>.)
Public method InsertElement Inserts a relationship entry (based on an element) at the specified index.
Public method InsertRelationshipEntry Inserts an empty relationship entry at the specified index.
Public method Remove Removes the first occurrence of a specific object from the ICollection<T>. (Inherited from ICollection<IModelElement>.)
Public method RemoveAt Removes the IList<T> item at the specified index. (Inherited from IList<IModelElement>.)

Top

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace