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
参数
- elementClass
类型:Microsoft.Data.Schema.SchemaModel.ModelElementClass
- relationshipName
类型:System.String
- relationshipType
类型:Microsoft.Data.Schema.SchemaModel.ModelRelationshipType
- relationshipCardinality
类型:Microsoft.Data.Schema.SchemaModel.ModelRelationshipCardinalityStyle
- isOrderedComparison
类型:System.Boolean
- isParentDecorator
类型:System.Boolean
返回值
类型:Microsoft.Data.Schema.SchemaModel.ModelRelationshipClass
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。