IProjectServiceDuplicateProject Method (Guid, String, NullableGuid, Boolean) |
Duplicates the specified project.
Namespace:
Dundas.BI.FileSystem
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (8.0.2.1001)
SyntaxGuid DuplicateProject(
Guid sourceProjectId,
string newProjectName,
Nullable<Guid> tenantId,
bool treatNullTenantIdAsNoTenant
)
Function DuplicateProject (
sourceProjectId As Guid,
newProjectName As String,
tenantId As Nullable(Of Guid),
treatNullTenantIdAsNoTenant As Boolean
) As Guid
Guid DuplicateProject(
Guid sourceProjectId,
String^ newProjectName,
Nullable<Guid> tenantId,
bool treatNullTenantIdAsNoTenant
)
abstract DuplicateProject :
sourceProjectId : Guid *
newProjectName : string *
tenantId : Nullable<Guid> *
treatNullTenantIdAsNoTenant : bool -> Guid
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.
- treatNullTenantIdAsNoTenant
- Type: SystemBoolean
If , a value for tenantId indicates that the new project should not be associated
with any tenant. If a tenant ID is specified, this parameter has no effect.
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. -or- tenantId is Empty. |
| NotFoundException | sourceProjectId references a project which does not exist. -or- tenantId references a tenant which does not exist. |
| ArgumentOutOfRangeException | newProjectName is longer than MaxNameLength. |
| 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