ModelStore.Element.GetRelationship<TRelating, TRelated> Method

Returns the asked relationship.

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

Syntax

'Declaration
Public Function GetRelationship(Of TRelating As {Class, IModelElement}, TRelated As {Class, IModelElement}) ( _
    relationshipClass As RelationshipClass _
) As IModelRelationship(Of TRelating, TRelated)
'Usage
Dim instance As ModelStore..::..Element
Dim relationshipClass As RelationshipClass
Dim returnValue As IModelRelationship(Of TRelating, TRelated)

returnValue = instance.GetRelationship(relationshipClass)
public IModelRelationship<TRelating, TRelated> GetRelationship<TRelating, TRelated>(
    RelationshipClass relationshipClass
)
where TRelating : class, IModelElement
where TRelated : class, IModelElement
public:
generic<typename TRelating, typename TRelated>
where TRelating : ref class, IModelElement
where TRelated : ref class, IModelElement
virtual IModelRelationship<TRelating, TRelated>^ GetRelationship(
    RelationshipClass^ relationshipClass
) sealed
JScript does not support generic types or methods.
abstract GetRelationship : 
        relationshipClass:RelationshipClass -> IModelRelationship<'TRelating, 'TRelated>  when 'TRelating : not struct and IModelElement when 'TRelated : not struct and IModelElement
override GetRelationship : 
        relationshipClass: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>

.NET Framework Security

See Also

Reference

ModelStore.Element Class

ModelStore.Element Members

Microsoft.Data.Schema.SchemaModel Namespace