Back to API Home

Duplicates a Project specified by its ID.

Namespace: Dundas.Dashboard.Business
Assembly: Dundas.Dashboard.Client (in Dundas.Dashboard.Client.dll) Version: 5.0.0.0 (5.5.0.1000)

Syntax

C#
public static void DuplicateAsync(
	Guid id,
	string newProjectName,
	OnCompleted<DuplicateProjectResult> callback
)
Visual Basic
Public Shared Sub DuplicateAsync ( 
	id As Guid,
	newProjectName As String,
	callback As OnCompleted(Of DuplicateProjectResult)
)

Parameters

id
Type: System..::..Guid
ID of the project to duplicate.
newProjectName
Type: System..::..String
The name of the created duplicate project.
callback
Type: Dundas.Dashboard..::..OnCompleted<(Of <(<'DuplicateProjectResult>)>)>
The callback for handling the completion event.

Exceptions

ExceptionCondition
Dundas.Dashboard..::..ObjectNotFoundExceptionThe project does not exist.
Dundas.Dashboard..::..DuplicateObjectExceptionThe target project already exists.
Dundas.Dashboard..::..NoPrivilegeExceptionNo privilege for attempted operation.
Dundas.Dashboard..::..InvalidArgumentExceptionA callback delegate must be specified.
Dundas.Dashboard..::..InvalidSessionExceptionYour session is no longer valid.

See Also