A Sandcastle Documented Class Library

# IProjectService DuplicateProject Method (Guid, Guid)

Copies the contents of a project into another project.

Namespace: Dundas.BI.FileSystem
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    void DuplicateProject(
    	Guid sourceProjectId,
    	Guid targetProjectId
    )

    Sub DuplicateProject (
    	sourceProjectId As Guid,
    	targetProjectId As Guid
    )

    void DuplicateProject(
    	Guid sourceProjectId,
    	Guid targetProjectId
    )

    abstract DuplicateProject :
            sourceProjectId : Guid *
            targetProjectId : Guid -> unit

#### Parameters

sourceProjectId
  Type: System
  Guid
  The ID of the source project.
targetProjectId
  Type: System
  Guid
  The ID of the target project.

Exceptions

Exception | Condition
--- | ---
ArgumentException | sourceProjectId or targetProjectId is Empty.
NotFoundException | sourceProjectId or targetProjectId references a project which does not exist.
NoPrivilegeException | The caller does not have administrative privileges on the source and target projects.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IProjectService Interface
DuplicateProject Overload
Dundas.BI.FileSystem Namespace