Click or drag to resize

ContainerManagerAddContainer Method

Adds the given container and all of its container items. All container items of type ContainerItemPassword and ContainerItemPasswordMemo are encrypted in the process. If neither a template group ID nor right templates are provided, the rights of the organisation unit are applied to the password.

Namespace:  PsrApi.Managers
Assembly:  PsrApi (in PsrApi.dll) Version: 9.2.2.32703 (27.03.2025)+b9af25405a8dc67f2b73227b442cec4f08fd2d8a
Syntax
C#
public Task<PsrContainer> AddContainer(
	PsrContainer container,
	Nullable<Guid> parentOrganisationUnitId,
	List<PsrDataRightTemplate> rightTemplates = null,
	Nullable<Guid> templateGroupId = null
)

Parameters

container
Type: PsrApi.DataPsrContainer
parentOrganisationUnitId
Type: SystemNullableGuid
ID of the organisation unit the new container should belong to
rightTemplates (Optional)
Type: System.Collections.GenericListPsrDataRightTemplate
templateGroupId (Optional)
Type: SystemNullableGuid
ID of a PsrTemplateGroup

Return Value

Type: TaskPsrContainer
See Also