Share via


IModelElement.GetRelationship<TRelating, TRelated> Method

Returns the asked relationship.

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

Syntax

'Declaration
Function GetRelationship(Of TRelating As {Class, IModelElement}, TRelated As {Class, IModelElement}) ( _
    relationshipSetClass As RelationshipClass _
) As IModelRelationship(Of TRelating, TRelated)
'Usage
Dim instance As IModelElement
Dim relationshipSetClass As RelationshipClass
Dim returnValue As IModelRelationship(Of TRelating, TRelated)

returnValue = instance.GetRelationship(relationshipSetClass)
IModelRelationship<TRelating, TRelated> GetRelationship<TRelating, TRelated>(
    RelationshipClass relationshipSetClass
)
where TRelating : class, IModelElement
where TRelated : class, IModelElement
generic<typename TRelating, typename TRelated>
where TRelating : ref class, IModelElement
where TRelated : ref class, IModelElement
IModelRelationship<TRelating, TRelated>^ GetRelationship(
    RelationshipClass^ relationshipSetClass
)
JScript does not support generic types or methods.
abstract GetRelationship : 
        relationshipSetClass:RelationshipClass -> IModelRelationship<'TRelating, 'TRelated>  when 'TRelating : not struct and IModelElement when 'TRelated : not struct and IModelElement

Type Parameters

  • TRelating
  • TRelated

Parameters

Return Value

Type: Microsoft.Data.Schema.SchemaModel.IModelRelationship<TRelating, TRelated>
Returns a IModelRelationship<TRelating, TRelated>.

.NET Framework Security

See Also

Reference

IModelElement Interface

IModelElement Members

Microsoft.Data.Schema.SchemaModel Namespace