public void DeleteReportFormat(OpenVASReportFormat format) { if (format.RemoteReportFormatID == Guid.Empty) { throw new Exception("Can't delete report format that hasn't been created."); } XmlDocument response = this.DeleteReportFormat(format.RemoteReportFormatID.ToString()); foreach (XmlAttribute attr in response.Attributes) { if (attr.Name == "status" && attr.Value != "200") { throw new Exception("Deleting report format failed."); } } }
public void DeleteReportFormat(OpenVASReportFormat format) { if (format.RemoteReportFormatID == Guid.Empty) throw new Exception("Can't delete report format that hasn't been created."); XmlDocument response = this.DeleteReportFormat(format.RemoteReportFormatID.ToString()); foreach (XmlAttribute attr in response.Attributes) { if (attr.Name == "status" && attr.Value != "200") throw new Exception("Deleting report format failed."); } }