Partager via


ModelElement.GetRelationship<TFrom, TTo>, méthode (ModelRelationshipClass)

Espace de noms :  Microsoft.Data.Schema.SchemaModel
Assembly :  Microsoft.Data.Schema (dans Microsoft.Data.Schema.dll)

Syntaxe

'Déclaration
Public Function GetRelationship(Of TFrom As {Class, IModelElement}, TTo As {Class, IModelElement}) ( _
    relationshipClass As ModelRelationshipClass _
) As IModelRelationship(Of TFrom, TTo)
public IModelRelationship<TFrom, TTo> GetRelationship<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
virtual IModelRelationship<TFrom, TTo>^ GetRelationship(
    ModelRelationshipClass^ relationshipClass
) sealed
abstract GetRelationship : 
        relationshipClass:ModelRelationshipClass -> IModelRelationship<'TFrom, 'TTo>  when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement
override GetRelationship : 
        relationshipClass:ModelRelationshipClass -> IModelRelationship<'TFrom, 'TTo>  when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement
JScript ne prend pas en charge les types ou les méthodes génériques.

Paramètres de type

  • TFrom
  • TTo

Paramètres

Valeur de retour

Type : Microsoft.Data.Schema.SchemaModel.IModelRelationship<TFrom, TTo>

Sécurité .NET Framework

Voir aussi

Référence

ModelElement Classe

GetRelationship, surcharge

Microsoft.Data.Schema.SchemaModel, espace de noms