Method CreateClass
CreateClass(DocumentId, string, string, string)
Creates a first level class entity in a classification document.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 10, 0, 0)]
ElementId CreateClass(DocumentId inDocumentId, string inDescription, string inCode, string inComment)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentId | inDocumentId | Identifier of the classification document to modify. |
| string | inDescription | Class description. |
| string | inCode | Class code, or empty string if none. |
| string | inComment | Class comment, or empty string if none. |
Returns
| Type | Description |
|---|---|
| ElementId | Identifier of the created class entity. |
Remarks
StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
The classification document must contain at least one level entity otherwise an exception is thrown.
This method is available since v7.10.