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

命名空间:  Microsoft.Data.Schema.SchemaModel
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
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 不支持泛型类型或方法。

类型参数

  • TReferencedInterface

参数

返回值

类型:Microsoft.Data.Schema.SchemaModel.ModelRelationshipClass

.NET Framework 安全性

请参见

参考

ModelElement 类

RegisterRelationshipClass 重载

Microsoft.Data.Schema.SchemaModel 命名空间