IProjectServiceDuplicateProject Method (Guid, String) |
Duplicates the specified project.
Namespace:
Dundas.BI.FileSystem
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (9.0.0.1000)
SyntaxGuid DuplicateProject(
Guid sourceProjectId,
string newProjectName
)
Function DuplicateProject (
sourceProjectId As Guid,
newProjectName As String
) As Guid
Guid DuplicateProject(
Guid sourceProjectId,
String^ newProjectName
)
abstract DuplicateProject :
sourceProjectId : Guid *
newProjectName : string -> Guid
Parameters
- sourceProjectId
- Type: SystemGuid
The ID of the project to duplicate. - newProjectName
- Type: SystemString
The name of the new project.
Return Value
Type:
GuidThe ID of the newly-created project.
Exceptions| Exception | Condition |
|---|
| ArgumentException | sourceProjectId is Empty. -or- newProjectName is , empty, only consists of whitespace, or contains invalid characters. |
| ArgumentOutOfRangeException | newProjectName is longer than MaxNameLength. |
| NotFoundException | sourceProjectId references a project which does not exist. |
| DuplicateItemException | A project with the specified name already exists. |
| NoPrivilegeException | The caller is not a system or tenant administrator. |
| InvalidSessionException | The caller context is not associated with a valid session. |
See Also