共用方式為


ModelElement.GetRelationships 方法

傳回項目中已註冊的關聯性清單。

命名空間:  Microsoft.Data.Schema.SchemaModel
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
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>

傳回值

型別:System.Collections.Generic.IList<IModelRelationship>
型別為 IModelRelationshipIList<T>

實作

IModelElement.GetRelationships()

備註

您可以考慮將結構描述關聯性一律從左到右,或從正在關聯項目到已關聯項目。

.NET Framework 安全性

請參閱

參考

ModelElement 類別

Microsoft.Data.Schema.SchemaModel 命名空間

GetRelationship

IModelRelationship