IModelMultiRelationship<TFrom, TTo> 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(Of TFrom As {Class, IModelElement}, TTo As {Class, IModelElement}) _
    Inherits IModelRelationship(Of TFrom, TTo), IModelRelationship, IModelEntity,  _
    IList(Of TTo), ICollection(Of TTo), IEnumerable(Of TTo),  _
    IEnumerable
public interface IModelMultiRelationship<TFrom, TTo> : IModelRelationship<TFrom, TTo>, 
    IModelRelationship, IModelEntity, IList<TTo>, ICollection<TTo>, IEnumerable<TTo>, 
    IEnumerable
where TFrom : class, IModelElement
where TTo : class, IModelElement
generic<typename TFrom, typename TTo>
where TFrom : ref class, IModelElement
where TTo : ref class, IModelElement
public interface class IModelMultiRelationship : IModelRelationship<TFrom, TTo>, 
    IModelRelationship, IModelEntity, IList<TTo>, ICollection<TTo>, IEnumerable<TTo>, 
    IEnumerable
type IModelMultiRelationship<'TFrom, 'TTo when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement> =  
    interface
        interface IModelRelationship<'TFrom, 'TTo>
        interface IModelRelationship
        interface IModelEntity
        interface IList<'TTo>
        interface ICollection<'TTo>
        interface IEnumerable<'TTo>
        interface IEnumerable
    end
JScript does not support generic types or methods.

Type Parameters

  • TFrom
  • TTo

The IModelMultiRelationship<TFrom, TTo> type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ICollection<T>. (Inherited from ICollection<TTo>.)
Public property FromElement Gets the relating element. (Inherited from IModelRelationship.)
Public property FromElement Gets the relating element. (Inherited from IModelRelationship<TFrom, TTo>.)
Public property IsReadOnly Gets a value indicating whether the ICollection<T> is read-only. (Inherited from ICollection<TTo>.)
Public property Item Gets or sets the element at the specified index. (Inherited from IList<TTo>.)
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<TTo>.)
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<TTo>.)
Public method Contains Determines whether the ICollection<T> contains a specific value. (Inherited from ICollection<TTo>.)
Public method CopyTo Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. (Inherited from ICollection<TTo>.)
Public method GetEnumerator() Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<TTo>.)
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 GetReferencedElements() Gets a list of the related elements. (Inherited from IModelRelationship<TFrom, TTo>.)
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<TTo>.)
Public method IndexOf(TTo, 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<TTo>.)
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<TTo>.)
Public method RemoveAt Removes the IList<T> item at the specified index. (Inherited from IList<TTo>.)

Top

Remarks

This is the base type interface, which should be used by features that do not know about explicit model interfaces.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace