ModelElement.GetRelationships Method
Returns a list of relationships that are registered in the element.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Function GetRelationships As IList(Of IModelRelationship)
public IList<IModelRelationship> GetRelationships()
public:
virtual IList<IModelRelationship^>^ GetRelationships() sealed
abstract GetRelationships : unit -> IList<IModelRelationship>
override GetRelationships : unit -> IList<IModelRelationship>
public final function GetRelationships() : IList<IModelRelationship>
Return Value
Type: System.Collections.Generic.IList<IModelRelationship>
An IList<T> of type IModelRelationship.
Implements
IModelElement.GetRelationships()
Remarks
You can think of a schema relationship as always going from left to right, or from the relating element to the related element.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.