Click or drag to resize

IRepositoryCreateRelType Method

Create a relationship type. Fails if an relationship type with the same name already exists.

Namespace:  PDTec.IceNet.Core.Model
Assembly:  PDTec.IceNet.Core (in PDTec.IceNet.Core.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
IRelType CreateRelType(
	string name,
	string displayName,
	string description,
	string descriptionFrom,
	string descriptionTo,
	Cardinality cardinalityFrom,
	Cardinality cardinalityTo,
	bool isOrderedFrom,
	bool isOrderedTo,
	IPackage pPackage
)

Parameters

name
Type: SystemString
The name.
displayName
Type: SystemString
The display name.
description
Type: SystemString
The description.
descriptionFrom
Type: SystemString
The description of the From role.
descriptionTo
Type: SystemString
The description of the To role.
cardinalityFrom
Type: PDTec.IceNet.Core.ModelCardinality
The cardinality of the From role.
cardinalityTo
Type: PDTec.IceNet.Core.ModelCardinality
The cardinality of the To role.
isOrderedFrom
Type: SystemBoolean
Indicates if the relationships of the From role will be ordered.
isOrderedTo
Type: SystemBoolean
Indicates if the relationships of the To role will be ordered.
pPackage
Type: PDTec.IceNet.Core.ModelIPackage
The package.

Return Value

Type: IRelType
The new relationship type.
Exceptions
ExceptionCondition
ModelExceptionThrown when a relationships type with the same name already exists.
See Also