Método ModelElement.GetSingleRelationship<TFrom, TTo>

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

Sintaxe

'Declaração
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
O JScript não oferece suporte a tipos ou métodos genéricos.

Parâmetros de tipo

  • TFrom
  • TTo

Parâmetros

Valor de retorno

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

Segurança do .NET Framework

Consulte também

Referência

ModelElement Classe

Namespace Microsoft.Data.Schema.SchemaModel