Поделиться через


IModelSingleRelationship Interface

If this interface is used, a single element can occur at the right side.

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

Syntax

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

The IModelSingleRelationship type exposes the following members.

Properties

  Name Description
Public property Element Gets or sets the related element.
Public property FromElement Gets the relating element. (Inherited from IModelRelationship.)
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 Clear Deletes the relationship entry, if it existed.
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 the related relationship entry.
Public method RecreateRelationshipEntry() Returns a new empty relationship entry or replaces an existing one.
Public method RecreateRelationshipEntry(IModelElement) Returns a new relationship entry that points to a specified element or replaces an existing one.

Top

Remarks

This interface is used by features that cannot use explicit model interfaces.

See Also

Reference

Microsoft.Data.Schema.SchemaModel Namespace