Deletes an infoRouter user.
Visual Basic (declaration) |
---|
Public Function DeleteUser( _ |
C# (declaration) |
---|
public XmlNode DeleteUser( |
Visual Basic Example |
---|
Public DeleteUser() Const IRAuthenticationTicket As String = "sid-xxxxxxxxxxxxx" Const UserNameToBeDeleted As String = "JoeD" Dim xmlResponse As System.Xml.XmlElement Dim IR_Obj As InfoRouter.srv Try 'Create InfoRouter Object IR_Obj = New InfoRouter.srv xmlResponse = IR_Obj.DeleteUser(IRAuthenticationTicket, UserNameToBeDeleted) If xmlResponse.GetAttribute("success") = "true" Then Console.WriteLine("'" & UserNameToBeDeleted & "' has been successfully deleted.") Else Console.WriteLine("'" & UserNameToBeDeleted & "' cannot be deleted.") Console.WriteLine("Server Response :" & xmlResponse.GetAttribute("error")) End If xmlResponse = Nothing Catch ex As Exception Console.WriteLine("error:" & ex.Message) Finally IR_Obj = Nothing End Try End Sub |