IModelElement.GetRelationship<TFrom, TTo> Yöntem (ModelRelationshipClass)
İlişki, iki ilişkili öğe belirtilen türde olduğu döndürür.
Ad alanı: Microsoft.Data.Schema.SchemaModel
Derleme: Microsoft.Data.Schema (Microsoft.Data.Schema.dll içinde)
Sözdizimi
'Bildirim
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
JScript genel türleri veya yöntemleri desteklemez.
Tür Parametreleri
- TFrom
Type İle ilgili (ya da sol) öğe.
- TTo
A Type ilgili (veya sağ) öğe.
Parametreler
- relationshipClass
Tür: Microsoft.Data.Schema.SchemaModel.ModelRelationshipClass
A ModelRelationshipClass meta veri nesnesi.
Dönüş Değeri
Tür: Microsoft.Data.Schema.SchemaModel.IModelRelationship<TFrom, TTo>
Bir IModelRelationship<TFrom, TTo> nesne.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. kısmen güvenilir kod tarafından Kitaplıklar kullanma.