IProjectServiceDuplicateProject Method (Guid, String, NullableGuid)

Duplicates the specified project.

Namespace:  Dundas.BI.FileSystem
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
Guid DuplicateProject(
	Guid sourceProjectId,
	string newProjectName,
	Guid? tenantId
)

Parameters

sourceProjectId
Type: SystemGuid
The ID of the project to duplicate.
newProjectName
Type: SystemString
The name of the new project.
tenantId
Type: SystemNullableGuid
The ID of the tenant which the project is duplicated to, or to preserve the original tenant ID value of the project.

Return Value

Type: Guid
The ID of the newly-created project.
Exceptions
ExceptionCondition
ArgumentException

sourceProjectId is Empty.

-or-

newProjectName is , empty, only consists of whitespace, or contains invalid characters.

-or-

tenantId is Empty.

NotFoundException

sourceProjectId references a project which does not exist.

-or-

tenantId references a tenant which does not exist.

ArgumentOutOfRangeExceptionnewProjectName is longer than MaxNameLength.
DuplicateItemExceptionA project with the specified name already exists.
NoPrivilegeExceptionThe caller is not a system or tenant administrator.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also