Metodo ModelElement.GetRelationship<TFrom, TTo> (ModelRelationshipClass)
Spazio dei nomi: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Sintassi
'Dichiarazione
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 non supporta i tipi o i metodi generici.
Parametri di tipo
- TFrom
- TTo
Parametri
- relationshipClass
Tipo: Microsoft.Data.Schema.SchemaModel.ModelRelationshipClass
Valore restituito
Tipo: Microsoft.Data.Schema.SchemaModel.IModelRelationship<TFrom, TTo>
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.