ALM Site Administration API Type Library 12.50 and later
MoveProjectToDomain Method
The current domain name before calling this method.
The project name.
The destination domain.
Description
Moves a deactivated project to another domain and retrieves project properties.
Syntax
Visual Basic
Public Function MoveProjectToDomain( _
   ByVal SourceDomain As String, _
   ByVal ProjectName As String, _
   ByVal DestinationDomain As String _
) As String
Parameters
SourceDomain
The current domain name before calling this method.
ProjectName
The project name.
DestinationDomain
The destination domain.
Return Type

On success, returns an XML string containing the project properties.

Remarks
The project must be deactivated before calling this function.
Return Value Details

The properties of the XML return string:

Example
Private Sub MoveProjectToDomain()

'The following Visual Basic example moves a project
' from "MyDomain" to "MyNewDomain".
    Dim sSourceDomainName As String
    Dim sDestinationDomainName As String
    Dim sProjectName As String
    Dim sReply As String

    On Error GoTo err
    
    sSourceDomainName = "MyDomain"
    sDestinationDomainName = "MyNewDomain"
    sProjectName = "MyProject"
    
    ' Deactivate  project
    Call m_SAClient.DeactivateProject _
        (sSourceDomainName, sProjectName)


    sReply = m_SAClient.MoveProjectToDomain _
        (sSourceDomainName, sProjectName, _
        sDestinationDomainName)

    MsgBox sReply
    
    ' Reactivate project
    Call m_SAClient.ActivateProject _
        (sDestinationDomainName, sProjectName)
    Exit Sub

err:
    MsgBox "Program failed:" + err.Description
End Sub
See Also

SAapi Object  | SAapi Members