DOFObjectIDcreate Method (Int32, Byte, DOFObjectIDAttribute)OpenDOF Object Access Library
Create a DOFObjectID given its class, byte data and optionally attributes.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public static DOFObjectID create(
	int idClass,
	byte[] data,
	params DOFObjectIDAttribute[] attributes
)

Parameters

idClass
Type: SystemInt32
The class of the identifier. This must be within the valid range.
data
Type: SystemByte
The identifier. This will be stored in the object identifier without parsing. This must not be null. The length must be valid (<= MAX_ID_LENGTH).
attributes
Type: org.opendof.core.oalDOFObjectIDAttribute
The attributes to be added to the DOFObjectID. List must only contain one attribute of each type. May be omitted if no attributes are desired.

Return Value

Type: DOFObjectID
The newly created object identifier.
Remarks

Create a DOFObjectID given its class, byte data and optionally attributes. If an DOFObjectID cannot be created from the identifier provided then it returns null.
See Also

Reference