SAapi Object : SetProjectProperty Method |
The property number you wish to change. You can use the following constants or their values:
The property value.
Visual Basic |
---|
Public Function SetProjectProperty( _ ByVal DomainName As String, _ ByVal ProjectName As String, _ ByVal PropertyNumber As Long, _ ByVal PropertyValue As String _ ) As String |
The property number you wish to change. You can use the following constants or their values:
The property value.
On success, returns an XML string containing the project properties.
The project must be deactivated in order to change the following properties: SA_PROJECT_DB_CONNECT_STRING, SA_PROJECT_NAME.
Property SA_PROJECT_DB_USER_PASSWORD applies to Oracle databases only.
The properties of the XML return string:
Private Sub SetProjectProperty() 'The following Visual Basic example sets the property ' for a project name. 'The project is deactivated, renamed, and ' then reactivated. Dim sDomainName As String Dim sProjectName As String Dim sReply As String On Error GoTo err sDomainName = "MyDomain" sProjectName = "MyProject" sReply = m_SAClient.DeactivateProject _ (sDomainName, sProjectName) sReply = m_SAClient.SetProjectProperty _ (sDomainName, sProjectName, _ SA_PROJECT_NAME, "YourProject") MsgBox sReply sReply = m_SAClient.ActivateProject _ (sDomainName, "YourProject") Exit Sub err: MsgBox "Program failed:" + err.Description End Sub