ModelStore.Element.GetRelationship Method
Returns the asked relationship.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Function GetRelationship ( _
relationshipClass As RelationshipClass _
) As IModelRelationship
'Usage
Dim instance As ModelStore..::..Element
Dim relationshipClass As RelationshipClass
Dim returnValue As IModelRelationship
returnValue = instance.GetRelationship(relationshipClass)
public IModelRelationship GetRelationship(
RelationshipClass relationshipClass
)
public:
virtual IModelRelationship^ GetRelationship(
RelationshipClass^ relationshipClass
) sealed
public final function GetRelationship(
relationshipClass : RelationshipClass
) : IModelRelationship
abstract GetRelationship :
relationshipClass:RelationshipClass -> IModelRelationship
override GetRelationship :
relationshipClass:RelationshipClass -> IModelRelationship
Parameters
- relationshipClass
Type: Microsoft.Data.Schema.SchemaModel.RelationshipClass
The class of the relationship
Return Value
Type: Microsoft.Data.Schema.SchemaModel.IModelRelationship
Implements
IModelElement.GetRelationship(RelationshipClass)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.