SAapi Object : RestoreProjectEx Method |
The type of database. Use the following constants or their values:
Pass true if this is a template project.
Visual Basic |
---|
Public Function RestoreProjectEx( _ ByVal DomainName As String, _ ByVal ProjectName As String, _ ByVal DbType As Integer, _ ByVal PhysicalDirectory As String, _ ByVal DbName As String, _ ByVal DbServerName As String, _ ByVal ConnStr As String, _ ByVal DbUserPass As String, _ ByVal PrIsActive As Boolean, _ ByVal PrHasVcsDb As Boolean, _ ByVal SaqIsActive As Boolean, _ ByVal UserQuota As Long, _ ByVal VmRepository As String, _ ByVal Description As String, _ ByVal ProjectType As String, _ ByVal PrIsTemplate As Boolean, _ ByVal ProjectUID As String, _ ByVal replaceProject As Boolean _ ) As String |
The type of database. Use the following constants or their values:
Pass true if this is a template project.
On success, returns an XML string containing the retored project's properties.
The properties of the XML return string:
Private Sub RestoreProjectEx() 'The following Visual Basic example restores a project ' that was saved in the MyProject subdirectory. Dim sDomainName As String Dim sProjectName As String Dim sServerName As String Dim sPhysicalDirectory As String Dim sProjectType As String Dim sProjectUID As String Dim sReply As String On Error GoTo err sDomainName = "MyDomain" sProjectName = "MyProject" sPhysicalDirectory = "C:\TD_Dir\MYDOMAIN\MyProject" sServerName = "http://myserver/qcbin" sProjectType = "Standard" sProjectUID = "a01aa632-e9c7-4e63-9b7f-5241cc5e29cb" sReply = m_SAClient.RestoreProjectEx( _ sDomainName, sProjectName, SA_ORACLE_DB_TYPE, _ sPhysicalDirectory, sProjectName, _ sServerName, "jdbc:inetora:myserver:1521:myserver", _ sUserPassWord, True, True, True, 20, "", _ "New Project1 for testing", _ sProjectType, False, sProjectUID, True) MsgBox sReply Exit Sub err: MsgBox "Program failed:" + err.Description End Sub