ALM Site Administration API Type Library 12.50 and later
EnableVersionControl Method
The domain name.
The project name.
Description
Enables project version control and retrieves project properties.
Syntax
Visual Basic
Public Function EnableVersionControl( _
   ByVal DomainName As String, _
   ByVal ProjectName As String _
) As String
Parameters
DomainName
The domain name.
ProjectName
The project name.
Return Type

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

Remarks
The source project must be deactivated before this function is called.
Return Value Details

The properties of the XML return string:

Example
Private Sub EnableVersionControl()

'The following Visual Basic example enables version control.
    Dim sDomainName As String
    Dim sProjectName As String
    Dim sReply As String

    On Error GoTo err
    
    sDomainName = "MyDomain"
    sProjectName = "MyProject"
    sReply = m_SAClient.EnableVersionControl _
        (sDomainName, sProjectName)
    MsgBox sReply
    Exit Sub

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

SAapi Object  | SAapi Members