Click or drag to resize

IRepositoryCreateAttrType Method

Create an attribute type. Fails if an attribute 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#
IAttrType CreateAttrType(
	string name,
	string displayName,
	string description,
	AttrValueType valueType,
	string unitOfMeasurement,
	string rangeSpec,
	IPackage pPackage
)

Parameters

name
Type: SystemString
The name.
displayName
Type: SystemString
The display name.
description
Type: SystemString
The description.
valueType
Type: PDTec.IceNet.Core.ModelAttrValueType
The basic value type.
unitOfMeasurement
Type: SystemString
The UOM identifier.
rangeSpec
Type: SystemString
The range specification.
pPackage
Type: PDTec.IceNet.Core.ModelIPackage
The package.

Return Value

Type: IAttrType
The new attribute type.
Exceptions
ExceptionCondition
ModelExceptionThrown when a attribute type with the same name already exists.
See Also