IModelElement.GetRelationship Method (ModelRelationshipClass)
Returns the requested relationship by using the provided metadata.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Function GetRelationship ( _
relationshipClass As ModelRelationshipClass _
) As IModelRelationship
IModelRelationship GetRelationship(
ModelRelationshipClass relationshipClass
)
IModelRelationship^ GetRelationship(
ModelRelationshipClass^ relationshipClass
)
abstract GetRelationship :
relationshipClass:ModelRelationshipClass -> IModelRelationship
function GetRelationship(
relationshipClass : ModelRelationshipClass
) : IModelRelationship
Parameters
- relationshipClass
Type: Microsoft.Data.Schema.SchemaModel.ModelRelationshipClass
An IModelRelationship metadata class.
Return Value
Type: Microsoft.Data.Schema.SchemaModel.IModelRelationship
An IModelRelationship object.
.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.