Bagikan melalui


IModelRelationship Interface

Used to get both sides of a relationship.

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

Syntax

'Declaration
Public Interface IModelRelationship _
    Inherits IModelEntity
public interface IModelRelationship : IModelEntity
public interface class IModelRelationship : IModelEntity
type IModelRelationship =  
    interface
        interface IModelEntity
    end
public interface IModelRelationship extends IModelEntity

The IModelRelationship type exposes the following members.

Properties

  Name Description
Public property FromElement Gets the relating element.
Public property Model Gets the model reference. (Inherited from IModelEntity.)
Public property RelationshipClass Gets the metadata class.

Top

Methods

  Name Description
Public method GetReferencedElements Returns the related elements.
Public method GetReferencedRelationshipEntries Returns the related relationship entries.

Top

Remarks

This interface should be used by features that do not know about explicit model interfaces.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace