IProjectServiceDuplicateProject(Guid, String) Method

Duplicates the specified project.

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

Parameters

sourceProjectId  Guid
The ID of the project to duplicate.
newProjectName  String
The name of the new project.

Return Value

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.

ArgumentOutOfRangeExceptionnewProjectName is longer than MaxNameLength.
NotFoundExceptionsourceProjectId references a project which does not exist.
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