Share via


ModelElement.RegisterRelationshipClass<TReferencedInterface> Method (ModelElementClass, String, ModelRelationshipType, ModelRelationshipCardinalityStyle, Boolean, Boolean)

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

Syntax

'Declaration
Protected Shared Function RegisterRelationshipClass(Of TReferencedInterface) ( _
    elementClass As ModelElementClass, _
    relationshipName As String, _
    relationshipType As ModelRelationshipType, _
    relationshipCardinality As ModelRelationshipCardinalityStyle, _
    isOrderedComparison As Boolean, _
    isParentDecorator As Boolean _
) As ModelRelationshipClass
protected static ModelRelationshipClass RegisterRelationshipClass<TReferencedInterface>(
    ModelElementClass elementClass,
    string relationshipName,
    ModelRelationshipType relationshipType,
    ModelRelationshipCardinalityStyle relationshipCardinality,
    bool isOrderedComparison,
    bool isParentDecorator
)
protected:
generic<typename TReferencedInterface>
static ModelRelationshipClass^ RegisterRelationshipClass(
    ModelElementClass^ elementClass, 
    String^ relationshipName, 
    ModelRelationshipType relationshipType, 
    ModelRelationshipCardinalityStyle relationshipCardinality, 
    bool isOrderedComparison, 
    bool isParentDecorator
)
static member RegisterRelationshipClass : 
        elementClass:ModelElementClass * 
        relationshipName:string * 
        relationshipType:ModelRelationshipType * 
        relationshipCardinality:ModelRelationshipCardinalityStyle * 
        isOrderedComparison:bool * 
        isParentDecorator:bool -> ModelRelationshipClass 
JScript does not support generic types or methods.

Type Parameters

  • TReferencedInterface

Parameters

Return Value

Type: Microsoft.Data.Schema.SchemaModel.ModelRelationshipClass

.NET Framework Security

See Also

Reference

ModelElement Class

RegisterRelationshipClass Overload

Microsoft.Data.Schema.SchemaModel Namespace