傳回項目中已註冊的關聯性清單。
命名空間: 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>
型別為 IModelRelationship 的 IList<T>。
實作
IModelElement.GetRelationships()
備註
您可以考慮將結構描述關聯性一律從左到右,或從正在關聯項目到已關聯項目。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。