共用方式為


IModelElement.GetRelationship 方法 (ModelRelationshipClass)

使用提供的中繼資料,傳回所要求的關聯性。

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

語法

'宣告
Function GetRelationship ( _
    relationshipClass As ModelRelationshipClass _
) As IModelRelationship
IModelRelationship GetRelationship(
    ModelRelationshipClass relationshipClass
)
IModelRelationship^ GetRelationship(
    ModelRelationshipClass^ relationshipClass
)
abstract GetRelationship : 
        relationshipClass:ModelRelationshipClass -> IModelRelationship 
function GetRelationship(
    relationshipClass : ModelRelationshipClass
) : IModelRelationship

參數

傳回值

型別:Microsoft.Data.Schema.SchemaModel.IModelRelationship
IModelRelationship 物件。

.NET Framework 安全性

請參閱

參考

IModelElement 介面

GetRelationship 多載

Microsoft.Data.Schema.SchemaModel 命名空間

IModelRelationship