共用方式為


ModelElement.GetSingleRelationship<TFrom, TTo> 方法

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

語法

'宣告
Public Function GetSingleRelationship(Of TFrom As {Class, IModelElement}, TTo As {Class, IModelElement}) ( _
    relationshipClass As ModelRelationshipClass _
) As IModelSingleRelationship(Of TFrom, TTo)
public IModelSingleRelationship<TFrom, TTo> GetSingleRelationship<TFrom, TTo>(
    ModelRelationshipClass relationshipClass
)
where TFrom : class, IModelElement
where TTo : class, IModelElement
public:
generic<typename TFrom, typename TTo>
where TFrom : ref class, IModelElement
where TTo : ref class, IModelElement
IModelSingleRelationship<TFrom, TTo>^ GetSingleRelationship(
    ModelRelationshipClass^ relationshipClass
)
member GetSingleRelationship : 
        relationshipClass:ModelRelationshipClass -> IModelSingleRelationship<'TFrom, 'TTo>  when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement
JScript 不支援泛型型別或方法。

型別參數

  • TFrom
  • TTo

參數

傳回值

型別:Microsoft.Data.Schema.SchemaModel.IModelSingleRelationship<TFrom, TTo>

.NET Framework 安全性

請參閱

參考

ModelElement 類別

Microsoft.Data.Schema.SchemaModel 命名空間