Sdílet prostřednictvím


ModelElement.GetSingleRelationship<TFrom, TTo> – metoda

Obor názvů:  Microsoft.Data.Schema.SchemaModel
Sestavení:  Microsoft.Data.Schema (v Microsoft.Data.Schema.dll)

Syntaxe

'Deklarace
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
Jazyk JScript nepodporuje obecné typy a metody.

Parametry typu

  • TFrom
  • TTo

Parametry

Vrácená hodnota

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

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

ModelElement Třída

Microsoft.Data.Schema.SchemaModel – obor názvů