SAapi Object : DeleteProject Method |
Visual Basic |
---|
Public Function DeleteProject( _ ByVal DomainName As String, _ ByVal ProjectName As String, _ ByVal AdminName As String, _ ByVal AdminPassword As String _ ) As String |
Private Sub DeleteProject() 'The following Visual Basic example deletes a project. Dim sDomainName As String Dim sProjectName As String Dim sReply As String On Error GoTo err sDomainName = "MyDomain" sProjectName = "MyProject" sReply = m_SAClient.DeleteProject _ (sDomainName, sProjectName, "Admin", "Swordfish") MsgBox sReply Exit Sub err: MsgBox "Program failed:" + err.Description End Sub