ModelElement.RegisterRelationshipClass<TReferencedInterface> Method (ModelElementClass, String, ModelRelationshipType, ModelRelationshipCardinalityStyle, 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 _
) As ModelRelationshipClass
protected static ModelRelationshipClass RegisterRelationshipClass<TReferencedInterface>(
ModelElementClass elementClass,
string relationshipName,
ModelRelationshipType relationshipType,
ModelRelationshipCardinalityStyle relationshipCardinality,
bool isOrderedComparison
)
protected:
generic<typename TReferencedInterface>
static ModelRelationshipClass^ RegisterRelationshipClass(
ModelElementClass^ elementClass,
String^ relationshipName,
ModelRelationshipType relationshipType,
ModelRelationshipCardinalityStyle relationshipCardinality,
bool isOrderedComparison
)
static member RegisterRelationshipClass :
elementClass:ModelElementClass *
relationshipName:string *
relationshipType:ModelRelationshipType *
relationshipCardinality:ModelRelationshipCardinalityStyle *
isOrderedComparison:bool -> ModelRelationshipClass
JScript does not support generic types or methods.
Type Parameters
- TReferencedInterface
Parameters
- elementClass
Type: Microsoft.Data.Schema.SchemaModel.ModelElementClass
- relationshipName
Type: System.String
- relationshipType
Type: Microsoft.Data.Schema.SchemaModel.ModelRelationshipType
- relationshipCardinality
Type: Microsoft.Data.Schema.SchemaModel.ModelRelationshipCardinalityStyle
- isOrderedComparison
Type: System.Boolean
Return Value
Type: Microsoft.Data.Schema.SchemaModel.ModelRelationshipClass
.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.