insert MethodStatic

Insert a DocumentPartition and a DocumentListModel that sub-models it.

insert(iModelDb: IModelDb, parentSubjectId: string, name: string): string

@returns The Id of the newly inserted DocumentPartition and DocumentListModel (same value)

@throws IModelError if there is an insert problem.

Parameter Type Description
iModelDb IModelDb Insert into this iModel
parentSubjectId string The DocumentPartition will be inserted as a child of this Subject element.
name string The name of the DocumentPartition that the new DocumentListModel will sub-model.

Returns - string

The Id of the newly inserted DocumentPartition and DocumentListModel (same value)

Defined in

Last Updated: 17 December, 2024