Partilhar via


Método IModelElement.GetRelationship<TFrom, TTo> (ModelRelationshipClass)

Retorna um relacionamento no qual os dois elementos relacionados são dos tipos especificados.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (em Microsoft.Data.Schema.dll)

Sintaxe

'Declaração
Function GetRelationship(Of TFrom As {Class, IModelElement}, TTo As {Class, IModelElement}) ( _
    relationshipClass As ModelRelationshipClass _
) As IModelRelationship(Of TFrom, TTo)
IModelRelationship<TFrom, TTo> GetRelationship<TFrom, TTo>(
    ModelRelationshipClass relationshipClass
)
where TFrom : class, IModelElement
where TTo : class, IModelElement
generic<typename TFrom, typename TTo>
where TFrom : ref class, IModelElement
where TTo : ref class, IModelElement
IModelRelationship<TFrom, TTo>^ GetRelationship(
    ModelRelationshipClass^ relationshipClass
)
abstract GetRelationship : 
        relationshipClass:ModelRelationshipClass -> IModelRelationship<'TFrom, 'TTo>  when 'TFrom : not struct and IModelElement when 'TTo : not struct and IModelElement
O JScript não oferece suporte a tipos ou métodos genéricos.

Parâmetros de tipo

  • TFrom
    O Type do elemento relacionada (ou à esquerda).
  • TTo
    A Type do elemento relacionados (ou à direita).

Parâmetros

Valor de retorno

Tipo: Microsoft.Data.Schema.SchemaModel.IModelRelationship<TFrom, TTo>
Um objeto IModelRelationship<TFrom, TTo>.

Segurança do .NET Framework

Consulte também

Referência

IModelElement Interface

Sobrecargas GetRelationship

Namespace Microsoft.Data.Schema.SchemaModel

ModelRelationshipClass

IModelRelationship<TFrom, TTo>